mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-14 14:30:34 +01: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:
parent
3c81d35a59
commit
7e98bb0437
|
@ -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