Skip to content

Commit

Permalink
Rename argument to priv check
Browse files Browse the repository at this point in the history
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 d90a081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/bones/init.lua
Expand Up @@ -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
Expand Down

0 comments on commit d90a081

Please sign in to comment.