1
0
Fork 0

Merge pull request 'Disable the despawn timer catchup for items that were unloaded.' (#2386) from fix_item_depsawning_timer into master

Reviewed-on: MineClone2/MineClone2#2386
Reviewed-by: cora <cora@noreply.git.minetest.land>
This commit is contained in:
cora 2022-07-03 11:20:47 +00:00
commit ded679aaf7
1 changed files with 2 additions and 2 deletions

View File

@ -537,9 +537,9 @@ minetest.register_entity(":__builtin:item", {
self.itemstring = data.itemstring
self.always_collect = data.always_collect
if data.age then
self.age = data.age + dtime_s
self.age = data.age
else
self.age = dtime_s
self.age = self.age
end
--remember collection data
-- If true, can collect item without delay