restart item_despawn timer on unload

This commit is contained in:
cora 2022-05-02 23:32:30 +02:00
parent 85afc8bd53
commit d2944da951
1 changed files with 1 additions and 1 deletions

View File

@ -485,7 +485,7 @@ minetest.register_entity(":__builtin:item", {
local data = minetest.serialize({
itemstring = self.itemstring,
always_collect = self.always_collect,
age = self.age,
age = 0, --self.age, restart the timer when reloading ... idk why this set it to the current age?! WTF is going on why would a saved to disk item entity be a problem ? And i mean i suppose it doesnt get removed from there either until it is loaded again and actually times out....
_insta_collect = self._insta_collect,
_flowing = self._flowing,
_removed = self._removed,