potentially fix itemframe protection bug
master
CalebJ 2021-03-17 00:55:24 +00:00 committed by Hume2
parent cca5f8acba
commit 9dfcc040a6
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ end
function itemframe.rightclick(pos, node, clicker, itemstack)
local meta = minetest.get_meta(pos)
local player_name = clicker:get_player_name()
if minetest.is_protected(pos, player_name) then return end
local owner = meta:get_string("owner")
local admin = minetest.check_player_privs(player_name, "protection_bypass")