fix "Items don't drop the item for non-creative players"

master
Caleb 2020-10-16 08:41:17 -06:00
parent 5edf891a6a
commit 6e381bf7d0
1 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ function itemframe.punch(pos, node, puncher)
local owner = meta:get_string("owner")
local admin = minetest.check_player_privs(player_name, "protection_bypass")
if admin and player_name == owner then
if admin or player_name == owner then
drop_item(pos, node)
end
end
@ -178,4 +178,4 @@ minetest.register_craft({
{"group:stick", "default:paper", "group:stick"},
{"group:stick", "group:stick", "group:stick"}
}
})
})