1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-16 09:40:23 +02:00

Updated homedecor_modpack to fix entities' remove

- This commit adds the following modification : when an area using
  particles from homedecor_modpack is destroyed or unloaded, particles are
  removed to prevent a huge and useless use of memory
- This update have been checked with git diff : the mod have never been
  changed by us
This commit is contained in:
LeMagnesium 2015-01-17 22:25:49 +01:00
parent c196b069ac
commit 376cb57fd3

View File

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