Skip to content
Permalink
Browse files

Rename argument to priv check

Fixes crash when punching bones not owned by you, and may resolve #940
  • Loading branch information
James Stevenson authored and paramat committed Mar 18, 2016
1 parent 7024850 commit d90a0817223e33996b7fc3bb1c986da3a324aa98
Showing with 1 addition and 1 deletion.
  1. +1 −1 mods/bones/init.lua
@@ -5,7 +5,7 @@ bones = {}

local function is_owner(pos, name)
local owner = minetest.get_meta(pos):get_string("owner")
if owner == "" or owner == name or minetest.check_player_privs(placer, "protection_bypass") then
if owner == "" or owner == name or minetest.check_player_privs(name, "protection_bypass") then
return true
end
return false

0 comments on commit d90a081

Please sign in to comment.