mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 16:10:18 +01:00
it's possible for the player to be nil
in can_dig (e.g. if it's a technic quarry or something)
This commit is contained in:
parent
e8981367d6
commit
0eee5f4959
@ -206,6 +206,7 @@ minetest.register_node("itemframes:pedestal",{
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user