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

659 Commits

Author SHA1 Message Date
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
b229c2e8d7 rebuild patches 2025-08-15 05:46:15 +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
a74b57b875 drop Optimize addOrUpdateTransientModifier patch 2025-08-14 13:27:45 +09:00
hayanesuru
9cf1b7fdd9 fix purpur attribute base patch 2025-08-14 13:22:30 +09:00
Taiyou06
d3795372fa simple re-order (from opt/collisions branch) 2025-08-13 23:12:35 +02:00
Dreeam
681673fbc4 Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@6d0833ec Use target level for waypoint modify command (#12933)
PaperMC/Paper@9694886d Fix endermite spawn position
PaperMC/Paper@a664311f Fix AbstractArrow not setting noPhysics flag (#12935)
PaperMC/Paper@abf6b6c2 Allow replace effects in Consumable Component Builder (#12938)
PaperMC/Paper@3d1425f0 Fix phantoms failing to target players near non-insomniacs (#12953)
PaperMC/Paper@4fe66e58 Fix lead_break sound playing after cancelling EntityUnleashEvent (#12944)
PaperMC/Paper@86b716bc Fix BlockFadeEvent not being called when fire extinguishes in rain (#12972)
2025-08-14 01:24:12 +08:00
Dreeam
0b736f2a3e Fix snowball & egg knockback player
Set hurtMarked to true to be able to send velocity changes
under Entity#sendChanges via ClientboundSetEntityMotionPacket

Now is only knockback without making damages using hurtServer
2025-08-13 21:09:45 +08:00
hayanesuru
4a89aebf48 fix Leaf.enableFMA property check too many times 2025-08-11 01:57:46 +09:00
hayanesuru
6e3c2c52e6 reduce Entity#insideEffectCollector allocation (#455) 2025-08-09 04:40:31 +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
hayanesuru
1ea7c5fe56 Drop "Cache random tick block status" (#450)
* drop Cache random tick block status

* rebuild patches

* [ci/skip] Update patch comment
2025-08-09 02:35:58 +08:00
Dreeam
c19b9cd657 Remove list allocation 2025-08-08 01:49:00 +08:00
Creeam
428d135fb8 Re-add Lithium equipment tracking (#439)
* Lithium equipment tracking

* [ci/skip] Update lithium repo

* move down armorstand noTickEquipmentDirty

* [ci/skip] Delete old patch

* [ci/skip] Fix typo

* Revert "[ci/skip] Delete old patch"

This reverts commit 84e6d8a694.

* reapply Delete old patch

* [ci/skip] Correct patch name

---------

Co-authored-by: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com>
Co-authored-by: hayanesuru <hayanesuru@outlook.jp>
2025-08-07 00:55:52 +08:00
Pascalpex
9eda3f5aeb Remove unnecessary LeafBootstrap (#445) 2025-08-06 03:10:45 +08:00
Dreeam-qwq
45d32e1b0f Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@c60f4436 Restore players being the inventory holder of an enderchest (#12923)
PaperMC/Paper@e9380882 Lazy evaluate ender chest inventory holder
PaperMC/Paper@846c64f4 Allow for sending plugin messages during configuration stage (#12915)
2025-08-05 00:16:55 +00:00
Dreeam
93b9d3b03f [ci skip] Update patch comment & Move unapplied patches to work folder 2025-08-04 19:27:48 +08:00
Dreeam
9a4efaa230 Drop patch that causes performance regression
Originally vanilla logic is to use stream, and Mojang switched it to Guava's Collections2
since 1.21.4. It is much faster than using stream or manually adding to a new ArrayList.
Manually adding to a new ArrayList requires allocating a new object array. However, the Collections2
lazy handles filter condition on iteration, so much better.
2025-08-04 19:25:56 +08:00
Dreeam
8ceb19a065 Skip BlockPhysicsEvent if no listeners 2025-08-04 02:19:03 +08:00
𝑩𝒊𝒒𝒖𝒂𝒕𝒆𝒓𝒏𝒊𝒐𝒏𝒔
ac774bb511 Added back getHighestBlockYAt validation in CraftWorld (#444) 2025-08-03 20:04:21 +03:00
Taiyou06
8f101e696c couple small changes on the custom NonNullList 2025-08-02 13:53:06 +02:00
hayanesuru
290b140776 fix npe in tickChunks 2025-08-02 02:39:44 +09: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
Overwrite987
4f89f61d9f Do not try to create fire if explosion was cancelled (#433)
* Do not create fire if explosion was cancelled

* [ci/skip] Cleanup
2025-07-31 14:45:28 +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
9ba16f36ed Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@4d44b5fd Remove @Experimental annotation from the org.bukkit.damage package (#12898)
PaperMC/Paper@4f79e9ee [ci/skip] no need to ever import non-library files ever again (#12765)
PaperMC/Paper@a4da45e3 Fix typo in give command (#12905)
PaperMC/Paper@ec9c83fa Adventure 4.24.0 (#12908)
PaperMC/Paper@0c8efe4d [ci/skip] Remove redundant adventure version specification
PaperMC/Paper@ed31825a HIDE_ADDITIONAL_TOOLTIP backwards compat. not hiding disc names (#12900)
2025-07-31 14:04:29 +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
5a8e28b04b [ci skip] Cleanup 2025-07-28 21:42:16 +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
Dreeam
3268a57db8 Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@6bb9dc6b Normalize and trim spaces in Player#performCommand (#12892)
PaperMC/Paper@840dd9e1 Fix dialog preconditions (#12895)
PaperMC/Paper@9ccc51df Fix legacy pearls forgetting owner on disconnect (#12884)
PaperMC/Paper@57c13137 Allow to change despawnInPeaceful (#12880)
PaperMC/Paper@a5763618  Add WorldDifficultyChangeEvent (#12471)
PaperMC/Paper@dbc367ba Keep non-container slots synced when in container view (#12881)
2025-07-27 16:36:16 +08:00
hayanesuru
cb4da1a644 cleanup 2025-07-27 17:06:01 +09:00
Overwrite987
b43bda8fb7 Optimise TextColor (#411)
* Create 0278-Optimise-TextColor.patch

* update patch for the new requirements

* fix patch number and save 0.5 ns

* [ci/skip] cleanup
2025-07-27 15:44:33 +08:00
hayanesuru
ab1bdc7c38 fix build 2025-07-27 13:28:22 +09: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
Dreeam
deec3e5d37 [ci skip] cleanup 2025-07-27 10:10:18 +08: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
3e48b67319 fix async target finding entity headbang (#424)
closes #417
2025-07-26 01:05:41 +09:00
hayanesuru
49d29920a5 Revert "Optimize async pathfinding (#418)"
This reverts commit 9f5f764e7d.
2025-07-25 12:36:13 +09:00
Dreeam
ffa437b4aa Update reduce array allocations 2025-07-25 10:22:55 +08:00
Taiyou
006fe7ce3a rewritten profile cache (#415)
* rewritten profile cache

* cleanup

* Fix build

* Update comments
2025-07-25 04:48:54 +08:00