From: James Stevenson Date: Wed, 16 Mar 2016 18:34:07 +0000 (-0400) Subject: Rename argument to priv check X-Git-Tag: 0.4.14~84 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d90a0817223e33996b7fc3bb1c986da3a324aa98;p=oweals%2Fminetest_game.git 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 --- diff --git a/mods/bones/init.lua b/mods/bones/init.lua index 71f8f1cb..39502f1d 100644 --- a/mods/bones/init.lua +++ b/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