From d90a0817223e33996b7fc3bb1c986da3a324aa98 Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Wed, 16 Mar 2016 14:34:07 -0400 Subject: [PATCH] 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 --- mods/bones/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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