9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2026-01-06 15:51:31 +00:00
Commit Graph

4 Commits

Author SHA1 Message Date
hayanesuru
1c9e032c88 fix despawnInPeacefulOverride API and inline check despawn (#513)
* fix despawnInPeacefulOverride API and inline check despawn

* Revert "fix despawnInPeacefulOverride API and inline check despawn"

This reverts commit 82e37493fd.

* check despawn

* fix frozen

* rebuild patches
2025-12-31 12:17:27 -05:00
Creeam
73660cc048 Skip saving entities if they should despawn (#566)
* Skip saving entities if they should despawn
Call syncEntityAge() even if despawn time is disabled, as this may be enabled in the future by users.

* [ci/skip] format

* always load totalEntityAge from existing data
2025-12-23 10:49:46 -05:00
Creeam
42f955108d cleanup despawn logic and add explanation (#565) 2025-12-22 06:39:11 -05:00
Creeam
89d703336f Rewrite despawn time (#564)
* Rewrite entity despawn time
Brings ability to despawn weak-loaded entities once they are ticked

* Catchup on save

* handle edge cases

* check earlier for projectiles

* [ci/skip] Add patch comment
2025-12-20 08:18:00 -05:00