forked from mtcontrib/homedecor_modpack
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)
|
local meta = minetest.get_meta(pos)
|
||||||
return player:get_player_name() == meta:get_string("owner")
|
return player:get_player_name() == meta:get_string("owner")
|
||||||
end,
|
end,
|
||||||
|
after_destruct = remove_item,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
@ -181,6 +182,7 @@ minetest.register_node("itemframes:pedestal",{
|
|||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
return player:get_player_name() == meta:get_string("owner")
|
return player:get_player_name() == meta:get_string("owner")
|
||||||
end,
|
end,
|
||||||
|
after_destruct = remove_item,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- automatically restore entities lost from frames/pedestals
|
-- automatically restore entities lost from frames/pedestals
|
||||||
|
Loading…
Reference in New Issue
Block a user