hayanesuru
043cb215fd
Optimize canHoldAnyFluid in canMaybePassThrough ( #527 )
...
* optimize canHoldAnyFluid in canMaybePassThrough
* rebuild patches
* support reload
2025-10-12 14:26:33 -04:00
Dreeam
02a2e3e9ee
Disable VT4ProfileExecutor & VT4BukkitScheduler by default
...
Default disable VT4ProfileExecutor to avoid error code 429 when fetched profile from mojang server.
If related logic in plugins may not designed for VirtualThread, then virtual thread pinning may happen and causes problems.
So only let user to enable if needed.
For reference:
https://stackoverflow.com/questions/76618264/synchronize-block-pinning-virtual-thread
https://openjdk.org/jeps/491
2025-10-06 13:00:50 -04:00
Dreeam
7a09871fc1
Allow watchdog thread to pass thread check
...
Similar as Paper # 12030, watchdog thread may also access chunks when server crashed by watchdog timeout
We don't need to add same condition to isSameThreadFor used by PWT, since it already uses instanceOf to check is TickThread or not.
2025-10-03 13:18:54 -04:00
Dreeam
8a72cfe561
Fix incorrect coords passing
...
Co-Authored-By: hayanesuru <68378576+hayanesuru@users.noreply.github.com >
2025-09-30 18:37:01 -04:00
Dreeam
db053d5aa9
Fix incorrect coords passing
2025-09-30 12:47:05 -04:00
hayanesuru
fe444c434f
Update optimize entity despawn ( #454 )
...
* update partial sort in despawn map
* inline get pos
* cache difficulty
* refactor
* fix fallback extract
* remove test code
* cleanup
* direct compare
* cleanup
* cleanup
* fix axis and remove bucket
* reduce alloc
* paper vertical fallback
* add 2 dimension
* cleanup
2025-09-14 20:45:57 -04:00
MrlingXD
69b6fe60ad
fix(replay): run ServerPhotographer player ops on main thread ( #499 )
...
* fix(replay): schedule ServerPhotographer player ops on main thread when async ticking
2025-09-14 20:34:39 -04:00
Dreeam
d36ed6c316
Remove OP lock ( #486 )
...
Current implementation of OP lock is not an appropriate solution to prevent plugins that contain backdoor or malicious code. There are many ways to bypass this check to manipulate the OP list or permissions. The best way to prevent this kind of grief is to get plugins from valid and trustworthy places.
2025-08-31 23:53:19 -04:00
hayanesuru
6945a581d5
fix: array cast [ci skip]
2025-08-28 17:30:02 +09:00
hayanesuru
5cc4388005
perf: apply fast bit radix sort [ci skip]
2025-08-28 17:11:34 +09:00
hayanesuru
19100c9985
revert: smart sort entities in NearestLivingEntitySensor [ci skip]
2025-08-28 15:59:04 +09:00
hayanesuru
b853e77915
revert: use HashedList on WeightedList [ci skip]
2025-08-28 15:58:29 +09:00
hayanesuru
befdd9bb47
chore: move unused ActivationList [ci skip]
2025-08-28 15:58:29 +09:00
hayanesuru
f67c6cfb41
revert: custom NonNullList [ci skip]
2025-08-28 15:08:30 +09:00
HaHaWTH
9b1b165882
[ci skip] Remove DISCARD reject policy
2025-08-28 10:10:53 +08:00
Dreeam
8b64f4dd42
Cleanup version fetcher
2025-08-25 18:22:41 -04:00
Dreeam
52f643398c
Fetch versions from Leaf download api
2025-08-25 17:30:22 -04:00
hayanesuru
33de8a39ce
fix: sort config modules by class name
2025-08-24 16:13:11 +09:00
hayanesuru
b42ef7da8b
[ci skip] update comments
2025-08-20 16:44:05 +09:00
hayanesuru
d8d1a3cfbc
send velocity packets before entity tick ( #463 )
2025-08-20 14:57:54 +09:00
Dreeam
e7915c3726
Updated Upstream (Leaves)
...
Upstream has released updates that appear to apply and compile correctly
Leaves Changes:
LeavesMC/Leaves@08bfa446 Lithium Sleeping Block Entity(#618) (#630 )
LeavesMC/Leaves@610eee60 fix: fix bot resume CME (#635 )
LeavesMC/Leaves@04dac366 Fix vanilla display name (#638 )
LeavesMC/Leaves@e5aba7eb feat: hopper counter unlimited speed(#625 ) (#639 )
LeavesMC/Leaves@e44e469a fix: fix SleepingBlockEntity crash when /tick freeze (#640 )
LeavesMC/Leaves@5d653e31 fix: fix faster chunk serialization patch (#641 )
LeavesMC/Leaves@cb6cd658 [ci/skip] chore: fix patch header
LeavesMC/Leaves@8d9a5b2f [ci/skip]chore: rename hopper counter enable config (#644 )
LeavesMC/Leaves@cc019e8f [ci/skip] feat: add Bukkit.getFeatureManager api (#645 )
LeavesMC/Leaves@81da0c5e [ci/skip] Bring back LivingEntity effect CME (#648 )
LeavesMC/Leaves@ea91106a fix: fix hopper counter config (#646 )
LeavesMC/Leaves@230e0987 feat: mount action(#619 ) (#649 )
LeavesMC/Leaves@d9f7afc4 fix: fix sleeping block entity(#654 ) (#655 )
LeavesMC/Leaves@12f665c0 Refactor actions (#650 )
LeavesMC/Leaves@c29ff9a8 feat: swap action (#657 )
LeavesMC/Leaves@3c09044e fix: fix grindstone curse book overstacking(#658 ) (#659 )
LeavesMC/Leaves@e05f3f7c Update paper, revert #632 (#662 )
LeavesMC/Leaves@0c866281 Bot Improvements (#661 )
LeavesMC/Leaves@956f0227 feat: add skipTripwireHookPlacementValidation to mc-technical-mode, and format config (#664 )
LeavesMC/Leaves@e047327c fix: fix bot use raytrace (#669 )
LeavesMC/Leaves@29327349 Fix #667 (#668 )
LeavesMC/Leaves@08f53c97 Fix bot cant get entity tracker (#670 )
LeavesMC/Leaves@e0d62b4e fix photographer bugs (#666 )
LeavesMC/Leaves@d094bdad fix: fix raid(#626 ) (#671 )
LeavesMC/Leaves@678d4e20 Revert "Fix bot cant get entity tracker (#670 )"
LeavesMC/Leaves@e298d097 [ci/skip] fix: fix patch name (#672 )
LeavesMC/Leaves@099be5b8 [ci/skip] fix: fix push to api fail when commit contains double quotation marks (#677 )
LeavesMC/Leaves@ba8993d3 Fix fakeplayer cant get entity tracker correctly (#676 )
LeavesMC/Leaves@d93e9766 feat: merge old raid config, fix bugs (#680 )
LeavesMC/Leaves@bf55b2a4 fix: fix sleeping block entity bug (#682 )
LeavesMC/Leaves@5366b382 Fix creative no clip with projectile (#683 )
LeavesMC/Leaves@e55edbf8 Resolves #685 (#687 )
LeavesMC/Leaves@a591ec57 Do not tick Arrow life regardless (#688 )
LeavesMC/Leaves@3623aea8 fix: stupid me (#689 )
LeavesMC/Leaves@73e63912 feat: update leavesclip to 3.0.7 (#681 )
LeavesMC/Leaves@bb5a1dff [ci/skip] fix: fix comment (#692 )
LeavesMC/Leaves@d87bc544 Fix #690 (#691 )
LeavesMC/Leaves@79d9ef74 Update paper (#693 )
LeavesMC/Leaves@71790286 Fix optimize noise generation
LeavesMC/Leaves@3ffbde0b Optimize config transfer and remove
LeavesMC/Leaves@62e62242 feat: add logger for internal plugin, and format api code (#696 )
LeavesMC/Leaves@f37e9d37 Fix fakeplayer break action
LeavesMC/Leaves@aeb8e07d Fix fakeplayer break action * 2
LeavesMC/Leaves@40af0399 Fix StackableShulker config validator
LeavesMC/Leaves@122c7365 Fix fakeplayer use action
LeavesMC/Leaves@0ee80784 fix: fix photographer bugs (#699 )
LeavesMC/Leaves@a30c9abb Remove, and opt config and config command
LeavesMC/Leaves@4b21a968 New shears wrench (#700 )
LeavesMC/Leaves@0f40159c Enhance update suppression (#701 )
LeavesMC/Leaves@374605cd Fix bot (#705 )
LeavesMC/Leaves@ff563baf Fix creative no clip can attract xp-orb (#706 )
LeavesMC/Leaves@f0de3ecd refactor: use client side judgement instead of special judgement (#708 )
2025-08-20 05:53:39 +08:00
hayanesuru
037ec255d4
Replace GoalSelector#availableGoals with optimized collection ( #465 )
...
* optimize goal selector
* rebase
* rebase
---------
Co-authored-by: Taiyou06 <kaandindar21@gmail.com >
2025-08-19 21:48:46 +02:00
hayanesuru
23b7b02eee
optimize chunk map ( #438 )
...
* rebase
* optimize LivingEntity#travel
* cleanup
* Replace fluid height map
* reuse array list in Entity#collide
* cleanup
* fix fire and liquid collision shape
* fix checkInside
* inline betweenClosed
* cleanup
* optimize getOnPos
* optimize equals in getOnPos
* update mainSupportingBlockPos on dirty
* cleanup
* rename
* merge same patch
* rebase and remove properly
* [ci skip] cleanup
* rebase and rebuild
* fix async locator
* remove async locator
* cleanup
* rebase
---------
Co-authored-by: Taiyou06 <kaandindar21@gmail.com >
2025-08-19 20:48:26 +02:00
hayanesuru
e396d8c564
cleanup
2025-08-17 01:26:18 +09:00
Taiyou
1d73e1e10f
optimize setBlockState
...
* Lithium: combined heightmap update
---------
Co-authored-by: hayanesuru <hayanesuru@outlook.jp >
2025-08-16 18:20:53 +02:00
hayanesuru
6381a5e7c3
optimize collectTickingChunks in the random tick system ( #453 )
...
* optimize collectTickingChunks
* fix speed
2025-08-15 21:03:43 +09:00
hayanesuru
8c2b50bdb8
use TrackedChunk from ChunkData to prevent hash lookup ( #461 )
...
closes #441
2025-08-15 12:03:29 +09:00
hayanesuru
a059c32089
cleanup
2025-08-15 06:37:07 +09:00
hayanesuru
4cbde1d5b3
avoid registry (un)boxing in attribute map and activity map
2025-08-15 06:04:53 +09:00
hayanesuru
2a97def331
default tracker threads to 4
2025-08-15 05:50:56 +09:00
hayanesuru
46a1ff2ef0
update MpmcQueue layout
2025-08-15 05:50:55 +09:00
hayanesuru
de0e0f98a0
fix sent chunks data race
2025-08-15 05:40:39 +09:00
hayanesuru
6300dc3cfe
Revert AI goal selector to vanilla behavior ( #458 )
...
* Revert AI goal selector to vanilla behavior
* remove config
* Remove config & Update patch comments
* rename
* re apply
2025-08-15 02:50:55 +08:00
Dreeam
2d75f3e529
Bump netty to 4.2.4 & Add io_uring, kqueue support ( #449 )
...
* Bump netty to 4.2.3
* Upload config
* Update config comments
* Fix model detection
* Switch to system properties
* kqueue support
* Bump to latest
* Fix build
---------
Co-authored-by: HaHaWTH <102713261+HaHaWTH@users.noreply.github.com >
2025-08-15 02:50:29 +08:00
Dreeam
a1b39f41d6
Re-add Sakura: Optimise check inside blocks and traverse blocks
2025-08-14 22:37:10 +08:00
hayanesuru
c92396f324
Cache block state tags ( #451 )
...
* Cache block state tags
* [ci/skip] Fix comment
2025-08-09 04:37:39 +08:00
Pascalpex
9eda3f5aeb
Remove unnecessary LeafBootstrap ( #445 )
2025-08-06 03:10:45 +08:00
Taiyou06
8f101e696c
couple small changes on the custom NonNullList
2025-08-02 13:53:06 +02:00
hayanesuru
106af6dc38
[ci skip] fix build
2025-08-02 02:19:44 +09:00
Dreeam
a476b12f33
[ci skip] Change to new lithium repo
2025-08-01 19:11:33 +08:00
Dreeam
6686e0f507
Updated Upstream (Leaves)
...
Upstream has released updates that appear to apply and compile correctly
Leaves Changes:
LeavesMC/Leaves@9c12d296 Update Paper
LeavesMC/Leaves@357a03df Fix LitematicaEasyPlaceProtocol * 2
LeavesMC/Leaves@46cccfc3 Fix #609 & #612 , add maxNbt in litematics, improve protocol invoker (#611 )
LeavesMC/Leaves@c245ee67 Remove a useless patch (#614 )
LeavesMC/Leaves@eb3d87b8 feat: finish MOVE_ITEM_NEW_PACKET, fix rei protocol packet transformer (#615 )
LeavesMC/Leaves@6a2b9ee6 Fix long config (#617 )
LeavesMC/Leaves@2c9f83c7 fix: fix a bug in redstoneShearsWrench (#621 )
LeavesMC/Leaves@9cba2ea2 Fix #622 (#624 )
LeavesMC/Leaves@1242a2a6 Update Paper and Leavesclip
LeavesMC/Leaves@cadc1269 Fix replay api and add null check in botlist (#627 )
LeavesMC/Leaves@e68eb3fe Chat command max length
LeavesMC/Leaves@4c4712d3 Fix endermite spawn (#632 )
LeavesMC/Leaves@c581f131 Some fix, and clear
2025-07-31 14:21:26 +08:00
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