update homedecor again
parent
7ec609f647
commit
7315a13c3a
|
@ -146,6 +146,7 @@ minetest.register_node("itemframes:frame",{
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
can_dig = function(pos,player)
|
can_dig = function(pos,player)
|
||||||
|
if not player then return end
|
||||||
local name = player and player:get_player_name()
|
local name = player and player:get_player_name()
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
return name == meta:get_string("owner") or
|
return name == meta:get_string("owner") or
|
||||||
|
|
Loading…
Reference in New Issue