mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-11-19 00:20:38 +01:00
fix a similar crash possibility in itemframes:frame
This commit is contained in:
parent
0eee5f4959
commit
f4144817e2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user