summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--itemframes/init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/itemframes/init.lua b/itemframes/init.lua
index bb7f95a..a6561e1 100644
--- a/itemframes/init.lua
+++ b/itemframes/init.lua
@@ -146,6 +146,7 @@ minetest.register_node("itemframes:frame",{
end
end,
can_dig = function(pos,player)
+ if not player then return end
local name = player and player:get_player_name()
local meta = minetest.get_meta(pos)
return name == meta:get_string("owner") or