diff options
Diffstat (limited to 'itemframes')
-rw-r--r-- | itemframes/init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/itemframes/init.lua b/itemframes/init.lua index 8900dd5..8fca5e9 100644 --- a/itemframes/init.lua +++ b/itemframes/init.lua @@ -141,9 +141,9 @@ minetest.register_node("itemframes:frame",{ end end, can_dig = function(pos,player) - + local name = player and player:get_player_name() local meta = minetest.get_meta(pos) - return player:get_player_name() == meta:get_string("owner") + return name == meta:get_string("owner") end, on_destruct = function(pos) local meta = minetest.get_meta(pos) @@ -198,9 +198,9 @@ minetest.register_node("itemframes:pedestal",{ end end, can_dig = function(pos,player) - + local name = player and player:get_player_name() local meta = minetest.get_meta(pos) - return player:get_player_name() == meta:get_string("owner") + return name == meta:get_string("owner") end, on_destruct = function(pos) local meta = minetest.get_meta(pos) |