Skip to content
Snippets Groups Projects
Commit d90a0817 authored by James Stevenson's avatar James Stevenson Committed by paramat
Browse files

Rename argument to priv check

Fixes crash when punching bones not owned by you, and may resolve https://github.com/minetest/minetest_game/issues/940
parent 70248505
No related branches found
No related tags found
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment