9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-28 03:19:21 +00:00
Commit Graph

1585 Commits

Author SHA1 Message Date
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
Taiyou
55de442b70 skip if not listeners to PreCreatureSpawnEvent
* Skip PreCreatureSpawnEvent if no listeners
2025-08-19 12:36:17 +02:00
Dreeam-qwq
f12f98e2bf Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@47f983f4 Add allow-remote-ender-dragon-respawning setting (#12602)
PaperMC/Paper@616a8795 Add LootTable to BlockDispenseLootEvent (#12917)
2025-08-18 00:17:06 +00: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
fad6c18ca1 [ci skip] drop Cache supporting block check 2025-08-16 16:05:52 +09:00
Dreeam-qwq
c288810527 Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@651fa124 Fix cancelled EnderDragonShootFireballEvent playing sound (#12977)
PaperMC/Paper@2456ff26 [ci/skip] Update javadoc for tinted leaves particle (#12962)
PaperMC/Paper@a743e6b1 [ci/skip] Clarify tab completion ordering in event jd (#12965)
PaperMC/Paper@a22447a5 Added getWorldPath to World API (#12952)
PaperMC/Paper@b200237c Fix clone return for Paper PlayerProfile (#12984)
2025-08-16 00:16:16 +00:00
hayanesuru
6381a5e7c3 optimize collectTickingChunks in the random tick system (#453)
* optimize collectTickingChunks

* fix speed
2025-08-15 21:03:43 +09:00
Dreeam
af62c96f55 Fix PWT diff 2025-08-15 18:17:18 +08:00
Dreeam
5bf928dd76 Cleanup 2025-08-15 18:00:36 +08:00
hayanesuru
a1e9333dd5 Paper PR: Optimise temptation lookups (#464) 2025-08-15 18:26:08 +09:00
hayanesuru
8c2b50bdb8 use TrackedChunk from ChunkData to prevent hash lookup (#461)
closes #441
2025-08-15 12:03:29 +09:00
Dreeam-qwq
91739944e7 Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@f0c1f856 Fix Phantom entity Spawn reason (#12980)
2025-08-15 00:16:26 +00: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
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
66ddf9f50c move some archive patches 2025-08-15 04:23:16 +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
86c87e1ba0 Update Gradle to 9.0.0 2025-08-08 04:09:21 +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
6f25343ddb [ci skip] Update leaf docs 2025-08-05 18:05:48 +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-qwq
212815e788 Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@bf465e00 Cancel hit for all vanished entities, not only players (#12906)
2025-08-04 00:17:32 +00: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
76e478cb1a Fix build 2025-07-31 14:29:05 +08:00