mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 22:03:45 +01:00
Merge pull request 'Disable the despawn timer catchup for items that were unloaded.' (#2386) from fix_item_depsawning_timer into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2386 Reviewed-by: cora <cora@noreply.git.minetest.land>
This commit is contained in:
commit
ded679aaf7
@ -537,9 +537,9 @@ minetest.register_entity(":__builtin:item", {
|
|||||||
self.itemstring = data.itemstring
|
self.itemstring = data.itemstring
|
||||||
self.always_collect = data.always_collect
|
self.always_collect = data.always_collect
|
||||||
if data.age then
|
if data.age then
|
||||||
self.age = data.age + dtime_s
|
self.age = data.age
|
||||||
else
|
else
|
||||||
self.age = dtime_s
|
self.age = self.age
|
||||||
end
|
end
|
||||||
--remember collection data
|
--remember collection data
|
||||||
-- If true, can collect item without delay
|
-- If true, can collect item without delay
|
||||||
|
Loading…
Reference in New Issue
Block a user