9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-25 09:59:15 +00:00
Commit Graph

274 Commits

Author SHA1 Message Date
Dreeam
1f7afdaf1f [ci skip] Cleanup 2025-07-31 12:20:39 +08:00
Taiyou
276ca064a0 have safer dab blacklist by default (#436) 2025-07-31 01:57:12 +08:00
Dreeam
4d814b60d2 Cleanup 2025-07-28 20:58:25 +08:00
Taiyou
cc6f1d672a Custom NonNullList (#425)
* Custom NonNullList

* minimize diff

* cleanup and fixes

* silly

* bit more

* martjin the goat
2025-07-27 21:35:28 +03:00
hayanesuru
107d616ff2 optimize MpmcQueue memory layout (#427)
* optimize MpmcQueue memory layout

fix share cache line

* move to tail
2025-07-27 13:14:03 +09:00
hayanesuru
2f8499fb3c fix async tracker cause player velocity not updated (#432)
* fix async tracker player velocity not updated

* fix velocity packet not send to self
2025-07-27 04:56:11 +09:00
𝑩𝒊𝒒𝒖𝒂𝒕𝒆𝒓𝒏𝒊𝒐𝒏𝒔
42caad5a46 Simplified AsyncPath (#423)
* Some improvements for Async Path

* Fix small race condition, thx to @MartijnMuijsers

* This @Nullable is from an old implementation and no longer required
2025-07-26 19:31:11 +03:00
Dreeam
fd2f6e6bef Update AsteorBarProtocol to adapt Leaves's protocol manager update
Fixes https://github.com/Winds-Studio/Leaf/issues/430
2025-07-26 17:50:41 +08:00
hayanesuru
49d29920a5 Revert "Optimize async pathfinding (#418)"
This reverts commit 9f5f764e7d.
2025-07-25 12:36:13 +09:00
Taiyou
006fe7ce3a rewritten profile cache (#415)
* rewritten profile cache

* cleanup

* Fix build

* Update comments
2025-07-25 04:48:54 +08:00
Dreeam
3b9d8feb03 Updated Upstream (Paper/Purpur/Leaves)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@a5f2f614 Fix offhand item desync on cancelling interact events (#12828)
PaperMC/Paper@10318775 [ci/skip] Update mache for codebook 1.0.15 (#12887)

Purpur Changes:
PurpurMC/Purpur@c4e5604c Updated Upstream (Paper)
PurpurMC/Purpur@c130b18e Updated Upstream (Paper)
PurpurMC/Purpur@60bdf1c7 Final Paper Upstream
PurpurMC/Purpur@a39c4cb0 Updated Upstream (Paper)
PurpurMC/Purpur@ea7b18ab Updated Upstream (Paper)
PurpurMC/Purpur@0f82c210 Updated Upstream (Paper)
PurpurMC/Purpur@8de15d66 this is important for the build to not fail..
PurpurMC/Purpur@5053eb0c use a different method for dropping lapis, closes #1692

Leaves Changes:
LeavesMC/Leaves@df8397c7 Fix bot invulnerable
LeavesMC/Leaves@e1c21d3f Movable Budding Amethyst bind carpet rule (#561)
LeavesMC/Leaves@550dba49 Configurable item damage check and good shear behavior (#559)
LeavesMC/Leaves@cb64df44 Old Throwable Projectile tick order (#520)
LeavesMC/Leaves@b5793e80 Fix bot infinity desync (#584)
LeavesMC/Leaves@c5ecbe85 1.21.7/8 (#587)
LeavesMC/Leaves@5497dfb4 Fix CI
LeavesMC/Leaves@2f8255bd Fix LitematicaEasyPlaceProtocol
LeavesMC/Leaves@a416f476 Fix bot use actions (#606) (#605)
LeavesMC/Leaves@bfde470a fix: revert Configurable-collision-behavior patch (#607)
LeavesMC/Leaves@aaa2323d Fix Syncmatica file name
2025-07-24 20:18:23 +08:00
hayanesuru
e3edba1bdc [ci skip] typo MpmcQueue header 2025-07-24 01:11:12 +09:00
hayanesuru
80108127c3 fix shutdown 2025-07-23 18:14:11 +09:00
HaHaWTH
6f552d491e Correctly shutdown AsyncLocator 2025-07-23 17:30:26 +14:00
HaHaWTH
d50f8985fa Temporarily drop function execution result caching 2025-07-23 16:50:28 +14:00
hayanesuru
574f49304e fix bundle packet too large (#419)
restore to vanilla behavior
bundle delimiter packet used to ensure handle multiply packet in same tick (client side)
handle all packets together is unnecessarily
2025-07-23 10:42:37 +09:00
Taiyou06
394402fb64 op lock for stinky plugins 2025-07-22 23:19:27 +02:00
Taiyou
9f5f764e7d Optimize async pathfinding (#418)
* reduce async pathfinding cpu impact

* revert batch handling

* requests

* forgot this

* cant read for cry out loud 😭
2025-07-22 18:50:20 +03:00
hayanesuru
d2ec1cf133 fix incorrect nature spawnable chunk count compute 2025-07-22 03:23:47 +09:00
Dreeam
cb403fe2cd Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@1f93f566 [ci/skip] Improve getPotentialBedLocation deprecation (#12857)
PaperMC/Paper@6fb36e34 Replace compileOnly with implementation for test visibility (#12841)
PaperMC/Paper@aa4ef067 Update DataConverter constants for 1.21.8
PaperMC/Paper@f7c59f91 Fix broken resource pack API when configured in configuration stage (#12866)
PaperMC/Paper@0dad7f15 Add Bee#set/getTimeSinceSting() methods (#12792)
PaperMC/Paper@782ce950 Allow forcing break effects when using breakNaturally (#12734)
PaperMC/Paper@a2d37f12 Remove invalid team colors nicely (#12874)
PaperMC/Paper@617e5a46 Update to configurate 4.2.0 (#12869)
PaperMC/Paper@602ea9f0 Restore previous PlayerToggleSneakEvent behaviour (#12815)
PaperMC/Paper@c8a8c0ef feat(plugin): make Plugin extend Namespaced (#12867)
2025-07-21 08:29:33 +08:00
hayanesuru
e32588174c optimize entity despawn (#409)
* Reapply "optimize despawn (#399)"

This reverts commit 7992f91631.

* log FMA and Vector API

* axis order XYZ to XZY

* cleanup

* fix pivot at offset + median not included & fix simd min mask
2025-07-21 00:46:34 +09:00
hayanesuru
7992f91631 Revert "optimize despawn (#399)"
This reverts commit 3e109078ae.
2025-07-20 09:13:25 +09:00
hayanesuru
3e109078ae optimize despawn (#399)
* optimize despawn

* set LEAF_THRESHOLD to 4

* cleanup

* SIMD

* cleanup

* typo

* Depth-first search

* update optimize mob despawn

* cleanup

* optimize despawn map
2025-07-20 09:06:36 +09:00
hayanesuru
fb4067a731 fix BehaviorControlArraySet#equals 2025-07-20 04:56:58 +09:00
hayanesuru
bdb5f4586c optimize brain collections 2025-07-19 22:48:59 +09:00
Taiyou06
22a714c058 rewrite InsideBrownianWalk 2025-07-19 12:11:02 +02:00
Taiyou06
694e3d9c34 auto attribute counter 2025-07-19 00:22:31 +02:00
Dreeam
bee5b34d89 Add gale config re-init in Leaf reload command
Noted that gale config reload is still sync currently.
2025-07-19 06:11:53 +08:00
hayanesuru
79ed85ddb4 fix MpmcQueue memory order 2025-07-18 18:38:21 +09:00
Taiyou06
750ce31fb1 cache chunk pos 2025-07-17 21:10:15 +02:00
hayanesuru
390afdff39 update MpmcQueue 2025-07-17 05:41:54 +09:00
hayanesuru
1bf5f251ce fix empty check 2025-07-17 02:30:48 +09:00
hayanesuru
b079543135 fix async tracker deadlock 2025-07-17 02:20:13 +09:00
hayanesuru
cecd8d751a fix unpark race 2025-07-16 15:24:59 +09:00
hayanesuru
cdd379f424 fix async tracker deadlock 2025-07-16 15:09:19 +09:00
hayanesuru
ea00b11d11 Refactor async entity tracker (#390)
* prevents async entity tracker update equipment

* fix seenBy updated check

* skip submit empty

* fix invertedVisibilityEntities data race

* strict thread check

* set max-threads to 1 by default

* use fixed thread count

* increase thread priority

* Revert "use fixed thread count"

This reverts commit 6746bc25a8.

* Revert "set max-threads to 1 by default"

This reverts commit 5295b6d3e1.

* update entity tracker

* cleanup

* [ci skip] fix phrasing

* cleanup

* cleanup

* support Citizens

* optimize update if chunk player no change

* configurable threads

* configurable no blocking

* fix pos y and z

* optimize no blocking

* cleanup

* cleanup

* add handle during waitUntilNextTick

* fix entity disappear

* cleanup

* disable nonblocking by default

* [ci skip] add entity slice

* impl fork-join

* fix async locator diff

* optimize queue

* inline iterator

* [ci skip] Update patch header

* cleanup

* improve compatibility

* add license header

* optimize spin wait

* remove queue-size option

* dynamic adjust subtasks

---------

Co-authored-by: Taiyou06 <kaandindar21@gmail.com>
Co-authored-by: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com>
2025-07-16 02:42:37 +09:00
HaHaWTH
3fe6e77675 Move config to datapack section 2025-07-14 01:33:35 +14:00
hayanesuru
2f72924ec7 fix MC-298464 2025-07-13 19:40:29 +09:00
hayanesuru
7bec64acc1 Revert "[ci skip] more typo fix"
This reverts commit 608d4b183f.
2025-07-13 19:35:42 +09:00
Taiyou06
608d4b183f [ci skip] more typo fix 2025-07-13 00:21:14 +02:00
Dreeam
4d46366594 Use system arraycopy in blockEntity ticker list removing index & Update Leaf config util
supersedes https://github.com/Winds-Studio/Leaf/pull/380
2025-07-12 18:29:35 +08:00
Creeam
871e004368 Skip inactive entity for execute functions (#396) 2025-07-11 02:09:28 +08:00
hayanesuru
53f6cb4e4d typo optimize-random-tick config 2025-07-10 18:36:28 +09:00
Dreeam
ada68f0d1a Cleanup get java version & SIMD util
- Use modern API which introduced since Java 10 to get java major version
- Remove useless fields in SIMD util, Java 21+ supports SIMD.
2025-07-10 00:15:42 +08:00
HaHaWTH
b17348bdf9 Cleanup FMA system property parsing 2025-07-10 02:48:19 +14:00
Taiyou06
d041342e8a drop ReduceChunkSourceUpdates 2025-07-08 20:28:58 +02:00
hayanesuru
a0089ffaa9 fix reduce-chunk-source-updates config disappear 2025-07-08 23:45:54 +09:00
hayanesuru
ac6e483e8d fix async mob spawning TRACKED entities not count (#393)
* fix unloaded and TRACKED entities not count

#392

* move to archived
2025-07-08 22:54:12 +09:00
hayanesuru
88303ed880 fix phrasing 2025-07-08 20:05:51 +09:00
Taiyou06
2a3d1c46ee [ci skip] fix ReduceChunkSourceUpdates wording 2025-07-08 12:48:57 +02:00