mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 16:10:18 +01:00
make sure, that itemframes always remove their entities, even when worldediting
This commit is contained in:
parent
88e5c28d39
commit
16756150ac
@ -137,6 +137,7 @@ minetest.register_node("itemframes:frame",{
|
||||
local meta = minetest.get_meta(pos)
|
||||
return player:get_player_name() == meta:get_string("owner")
|
||||
end,
|
||||
after_destruct = remove_item,
|
||||
})
|
||||
|
||||
|
||||
@ -181,6 +182,7 @@ minetest.register_node("itemframes:pedestal",{
|
||||
local meta = minetest.get_meta(pos)
|
||||
return player:get_player_name() == meta:get_string("owner")
|
||||
end,
|
||||
after_destruct = remove_item,
|
||||
})
|
||||
|
||||
-- automatically restore entities lost from frames/pedestals
|
||||
|
Loading…
Reference in New Issue
Block a user