9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-25 01:49:16 +00:00
Commit Graph

113 Commits

Author SHA1 Message Date
Dreeam
2a72c42863 [ci skip] cleanup
stage 1
2025-05-15 00:00:06 -04:00
𝑩𝒊𝒒𝒖𝒂𝒕𝒆𝒓𝒏𝒊𝒐𝒏𝒔
a8e39fa9bc Prevent overriding spark flags (#322)
* Prevent overriding spark flags

* Null check
2025-05-14 22:41:28 -04:00
hayanesuru
c940bde695 optimize async target finding 2025-05-15 10:50:38 +09:00
Taiyou06
7691e546c2 HashedReferenceList on WeightedRandomList 2025-05-13 22:22:21 +02:00
hayanesuru
63edc90be8 fix async-target-finding 2025-05-14 01:00:14 +09:00
hayanesuru
0bdfeeb528 temp disable async-target-finding 2025-05-13 20:31:12 +09:00
Dreeam
e01facb2a3 Update Configurable unknown command message patch to follow the vanilla
* Add <message> to be more configurable
* Fix for custom brigadier exception message #319
2025-05-13 05:20:20 -04:00
Dreeam
af016b1178 Temp fix
Will fix soon when I have time
2025-05-11 17:54:56 -04:00
Taiyou06
130b55d7d4 if it aint broken, dont fix it 2025-05-11 21:25:14 +02:00
Taiyou06
8c56c79a35 faster player movement checks 2025-05-11 00:06:55 +02:00
Taiyou06
06baf83a90 Smart sort items in NearestItemSensor 2025-05-10 22:53:54 +02:00
Taiyou06
55a5cdafd0 [ci skip] move fastBitRadixSort to a dedicated method 2025-05-10 21:53:32 +02:00
hayanesuru
184c2221b2 update flush knockback 2025-05-10 23:33:17 +09:00
Taiyou06
1cbabcaf0e dont enable it by default lmao 2025-05-10 00:25:32 +02:00
Taiyou06
7d9865678b Only tick items at hand 2025-05-09 23:56:41 +02:00
hayanesuru
cf6c916f24 async switch connection state 2025-05-09 16:58:58 +09:00
hayanesuru
b63f850b91 move and flush position while knockback player (#316)
* move and flush position while knockback

* fix compile error

* rename

---------

Co-authored-by: Taiyou06 <kaandindar21@gmail.com>
2025-05-09 11:57:49 +09:00
hayanesuru
08287d95db threshold config 2025-05-09 11:28:49 +09:00
Taiyou06
49cc2a0f92 park less 2025-05-08 23:16:55 +02:00
Taiyou06
f4d9c7a512 Pluto: check if cactus can survive being placed 2025-05-08 21:56:32 +02:00
Taiyou06
3821c552e5 Optimise BlockEntity tickersInLevel 2025-05-08 13:34:09 +02:00
hayanesuru
0e3028fceb minecart_improvements Fix minecart tracker data race 2025-05-08 18:42:12 +09:00
Taiyou06
f0ff93a1ce AlternativeJoin to skip sync in syncAfterConfigurationChange 2025-05-08 11:17:05 +02:00
Taiyou06
56cc95b9ee Reduce ChunkSource Updates 2025-05-08 10:46:59 +02:00
hayanesuru
2d2eda8069 defer init tracker thread pool 2025-05-08 17:16:56 +09:00
hayanesuru
152fbed3d1 Don't parallel tick the tracker of entity 2025-05-08 17:16:43 +09:00
hayanesuru
a53ddc7f8c update async chunk send (#307)
* cleanup

* Async Chunk Send

---------

Co-authored-by: Taiyou06 <kaandindar21@gmail.com>
2025-05-06 20:28:16 +03:00
hayanesuru
974ede5f87 Do A Barrel Roll Protocol (#315)
* Do A Barrel Roll Protocol

* cleanup

* [ci skip] cleanup

* [ci skip] cleanup

* [ci skip] rename patch
2025-05-06 18:37:31 +03:00
hayanesuru
41664455a4 extend SpscIntQueue padding size to 252 2025-05-05 15:18:30 +08:00
hayanesuru
3ae994e707 remove box on SpscIntQueue#recv 2025-05-04 23:20:17 +08:00
hayanesuru
1ffa315c13 Reduce AsyncGoal content switching 2025-05-03 22:22:00 +08:00
Dreeam
1431eff510 [ci skip] cleanup 2025-05-03 07:50:33 -04:00
Dreeam
3f20ea5c71 Cleanup 2025-05-02 22:22:53 -04:00
Dreeam
f1df5351ca Update PlayerInventoryOverflowEvent (#304)
* Add configurable option in config for PlayerInventoryOverflowEvent and able to define the class name of listener
* Update checking method for overflow items handling logic, only fire event when actual listener is listening to it.
2025-05-02 16:13:19 -04:00
hayanesuru
e3731721df marks AsyncGoalThread non-daemon 2025-05-01 21:01:29 -07:00
Taiyou06
35d7a185f3 reduce unparking on AsyncGoalThread 2025-05-02 02:00:44 +02:00
Taiyou06
85c8a17e53 [ci skip] remove experimental tags from playerdata and target finding 2025-05-01 23:30:40 +02:00
Taiyou06
445df88770 few Sakura patches 2025-05-01 23:22:30 +02:00
hayanesuru
11ce54da4c default queueSize to 4096 2025-05-01 22:32:18 +08:00
hayanesuru
3b8ec970c8 optimize async target finding (#303)
* optimize async target finding

* fix canContinueToUse

* fix data race

* fix TemptGoal start before search entity

* fix AvoidEntityGoal doesn't create path

* fix inactiveTick tickingTarget

* default queueSize to 0

* default queueSize to 4096
2025-05-01 17:29:42 +03:00
hayanesuru
1bddbe19f0 optimize AttributeMap (#299)
* optimize AttributeMap

* update multithreaded tracker config

* use non-sync collection when MT disabled

* cleanup
2025-04-28 18:35:26 +03:00
HaHaWTH
1974f34879 General patch cleanup & New reject policy 2025-04-27 00:22:03 +14:00
HaHaWTH
97f0017519 Use a dedicated thread pool for PWT event rescheduling 2025-04-26 07:32:35 +14:00
Dreeam
b17a0b3550 Move leaf config saving after config post load 2025-04-25 13:06:52 -04:00
Dreeam
1fa4df017f Makes Pascalpex happy 2025-04-25 12:04:54 -04:00
hayanesuru
28543d51dd Fix some async config disappear after reload (#298)
* fix async config disappear

* fix comment of AsyncPathfinding config
2025-04-25 12:01:52 -04:00
hayanesuru
124dc64a0d update async target finding and block finding (#296)
* reduce overhead on poll

* more async search entities

* async block search

* rename search entity config

* cleanup

* fix async search block too frequent

* remove alertOther Experimental anno

* Adjust the delay of RemoveBlockGoal to match vanilla behavior

* Optimize TemptGoal

* rollback interval change

* cleanup

* add async finding to DefendVillageTargetGoal

* rollback interval change for NearestHealableRaiderTargetGoal

* config searchPlayer

* fix DefendVillageTargetGoal condition doesn't check

* add async finding to BegGoal

* rollback interval change for FollowMobGoal

* cleanup

* add async finding to some follow goal

* add async finding to TemptGoal

* handle searchPlayer config

* fix TemptGoal
2025-04-24 13:18:53 +03:00
HaHaWTH
f8578ef8b1 Improve PWT config handling 2025-04-24 03:26:29 +14:00
hayanesuru
9db6bfba3b improve Async target finding (#294)
* fix NearestHealableRaiderTargetGoal not async and fix data race in Async target finding

* remove unnecessary requiresUpdateEveryTick

* add AsyncGoal

* use cow list on ServerLevel#players

* move warning

* run tasks after entity tick
2025-04-22 18:55:01 +03:00
John Smith
ef1559c781 Fix flush frequency in linear region flush logic (#293)
Fixed an issue where linear always flushes
2025-04-22 00:06:23 -04:00