1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 00:20:17 +01:00

make sure, that itemframes always remove their entities, even when worldediting

This commit is contained in:
Tim 2015-01-15 12:56:00 +01:00
parent 88e5c28d39
commit 16756150ac

View File

@ -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