summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-02-22 17:48:50 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-02-22 17:48:50 -0500
commit7315a13c3a5369688fffef20ab6a5877f506a459 (patch)
tree0d806fae274d93fb6c04ba6831edb6a1e8c639c9
parent7ec609f647139aa44bd0ef8c7d908476379cc24f (diff)
downloaddreambuilder_modpack-7315a13c3a5369688fffef20ab6a5877f506a459.tar
dreambuilder_modpack-7315a13c3a5369688fffef20ab6a5877f506a459.tar.gz
dreambuilder_modpack-7315a13c3a5369688fffef20ab6a5877f506a459.tar.bz2
dreambuilder_modpack-7315a13c3a5369688fffef20ab6a5877f506a459.tar.xz
dreambuilder_modpack-7315a13c3a5369688fffef20ab6a5877f506a459.zip
update homedecor again
-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