fix a similar crash possibility in itemframes:frame

This commit is contained in:
Vanessa Ezekowitz 2017-02-22 17:48:11 -05:00
parent 0eee5f4959
commit f4144817e2

View File

@ -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