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

584 Commits

Author SHA1 Message Date
hayanesuru
0bd14537d9 optimize BlockEntityType#isValid (#290) 2025-04-25 12:10:50 +03: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
Taiyou06
28e2111198 will visit ChunkHolderManager again at some point 2025-04-21 23:36:24 +02:00
Taiyou
83e9043a45 Couple fixes and improvements (#287)
* a lot of cleanup and new chunk changes

* perf: Head Node Hit Optimization

* part 1: reworked-reworked ChunkHolderManager

* part 2: speeeeeeeeeeeeeeeeeeeeeeeeeeed

* Optimise MobEffectUtil#getDigSpeedAmplification

* optimize chunk unloads and cleanup a bit

* fix 🐝

* rewritten async target finding

* extend the custom map usage

---------

Co-authored-by: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com>
2025-04-21 23:49:33 +03:00
Dreeam
e82999dd18 Updated Upstream (Paper/Gale)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@07679026 CraftBlock - fix applyBoneMeal false result (#12407)
PaperMC/Paper@a838a886 Add PlayerRespawnEvent#isMissingRespawnBlock (#12422)

Gale Changes:
Dreeam-qwq/Gale@3c153f5f Updated Upstream (Paper)
2025-04-21 12:30:15 -04:00
HaHaWTH
65d24439b8 Mark FasterRandomSource direct impl as static final 2025-04-21 06:40:31 +14:00
HaHaWTH
05d64d7eb7 Add nullability check before caching profile result 2025-04-21 06:17:56 +14:00
hayanesuru
cda5af1083 update Async target finding (#291)
* update Async target finding

* create TargetingConditions instead of reusing it

* cleanup

* only add synchronized to Sensing when enable AsyncTargetFinding

* cleanup

* use Release order to store isSearching

* fix compile

* atomic removal check

* fix Entity#isRemoved doesn't init

* opt isRemoved use acquire memory order to load
2025-04-20 15:29:26 +03:00
Creeam
d0944505c2 Adjust throttle hopper default value
Vanilla throttles this for 8 ticks, leave it here as the default value
2025-04-19 22:19:26 +08:00
Dreeam
4103e3f226 Fix build 2025-04-18 08:59:17 -04:00
Dreeam
df9edc4fa1 Add back Lithium: equipment tracking 2025-04-18 04:38:18 -04:00
Dreeam
68b642a7f8 Fix race condition in IteratorSafeOrderedReferenceSet (#278)
* Fix race condition in IteratorSafeOrderedReferenceSet

* Use cached firstInvalidIndex at the beginning of the method
2025-04-17 18:44:13 -04:00
Dreeam
c12312bc33 Update changes from ver/1.21.4 branch 2025-04-17 03:44:13 -04:00
Dreeam
dd22d9caff [ci skip] cleanup imports 2025-04-17 03:17:40 -04:00
Dreeam
7ea4d4b639 [ci skip] cleanup 2025-04-17 03:04:03 -04:00
Dreeam
dff5b11bd9 cleanup 2025-04-17 02:45:56 -04:00
Dreeam
3f4246fe9a Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@a55345f9 Add support for deserializing manually deserialized items, also add caller note
PaperMC/Paper@2948eb29 Mitigate an issue when loading a spigot config with null spam exclusion entries
PaperMC/Paper@6c2b0378 Use correct saved data key for maps
2025-04-17 01:42:13 -04:00
Dreeam
3af60cbe46 Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@de410d13 Fix reobf mappings regression in GameRules.Type (#12437)
PaperMC/Paper@33e8928f Add support for bonus chest configuration in WorldCreator (#12344)
PaperMC/Paper@723b511f Clone exit location passed to teleport event (#12354)
PaperMC/Paper@ed322043 Clone blockpos in InsideBlockEffectApplier record
PaperMC/Paper@6b4ad082 Add PlayerRespawnEvent#isMissingRespawnBlock (#12422)
PaperMC/Paper@c0bd5688 Add logic for Human canUseEquipmentSlot (#12433)
2025-04-14 21:30:21 -04:00
Dreeam
502701329c Drop ShreddedPaper: Don't block main thread in Connection#syncAfterConfigurationChange & Move to TODO 2025-04-14 21:28:16 -04:00
Dreeam
7ac4a1bd0a Fix build 2025-04-14 11:14:09 -04:00
Dreeam
6345e99c97 Updated Upstream (Purpur)
Upstream has released updates that appear to apply and compile correctly

Purpur Changes:
PurpurMC/Purpur@d6ac530c [ci/skip] ignore deprecation or removal warnings
PurpurMC/Purpur@8c293626 [ci/skip] ignore deprecation or removal warnings
PurpurMC/Purpur@65b1288b Updated Upstream (Paper)
PurpurMC/Purpur@6be184ec Merge branch 'ver/1.21.4' into ver/1.21.5
PurpurMC/Purpur@0311dfcd Updated Upstream (Paper)
PurpurMC/Purpur@ecd0d703 Updated Upstream (Paper)
PurpurMC/Purpur@c5bb590f [ci/skip] Mention API Checks for CONTRIBUTING.md
PurpurMC/Purpur@96f0ee1e Add check for max growth age special case (#1652)
PurpurMC/Purpur@d4af7947 Add configurable smooth snow accumulation (#1651)
PurpurMC/Purpur@51aafbc7 Final 1.21.4 Upstream (Paper)
PurpurMC/Purpur@ba521eb6 read & write spawn data properly for placing spawners option
PurpurMC/Purpur@751d8388 fix color signs not working properly
PurpurMC/Purpur@f5a9280b Merge branch 'ver/1.21.4' into ver/1.21.5
PurpurMC/Purpur@f8450874 Updated Upstream (Paper)
2025-04-14 11:07:43 -04:00
Dreeam
d08d6116f0 Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@f00727c5 1.21.5
PaperMC/Paper@8eede4bb Fix AbstractHorse get/setSaddle
PaperMC/Paper@93b6829e Also fix AbstractHorse getSize and isEmpty
PaperMC/Paper@f517267c Add passthrough for air serialization
PaperMC/Paper@4511edb8 [ci/skip] Don't promote checking enchantment by legacy lore (#12421)
PaperMC/Paper@8f62e0fb Correctly order getArmorContents
PaperMC/Paper@652cea57 Allow `getAsString()`-ing non-persistent entities (#12424)
PaperMC/Paper@de64e704 Update spark
PaperMC/Paper@1b889688 Add Entity#isTrackedBy (#12332)
PaperMC/Paper@8ff94c63 Update a bunch of dependencies
PaperMC/Paper@79036210 Remove json-simple imports from API, keep it as implementation in server
PaperMC/Paper@dcb755ac Update log4j jd link
PaperMC/Paper@91bfb6fb Fix freeze locked (#12434)
PaperMC/Paper@121a7bf4 Make GameRule a FeatureDependant (#12429)
PaperMC/Paper@7d5695d7 Improve ItemMeta#hasCustomModelData compatibility (#12414)
2025-04-14 10:52:33 -04:00
Dreeam
7eb3c4f5de Update Spark 2025-04-14 09:21:10 -04:00
Dreeam
d5d6ac4a44 Updated Upstream (Purpur)
Upstream has released updates that appear to apply and compile correctly

Purpur Changes:
PurpurMC/Purpur@d4af7947 Add configurable smooth snow accumulation (#1651)
PurpurMC/Purpur@51aafbc7 Final 1.21.4 Upstream (Paper)
2025-04-13 19:43:38 -04:00
Taiyou06
3d7b15ba53 cleanup and make concurrency level higher 2025-04-13 03:59:07 +02:00
Taiyou06
2308f08ae3 make StringCanonizingOpenHashMap faster 2025-04-13 03:23:40 +02:00
Taiyou06
bb67247bbd fix bfs on getSlopeDistance 2025-04-13 02:17:01 +02:00
Dreeam
caf961ac08 Updated Upstream (Purpur)
Upstream has released updates that appear to apply and compile correctly

Purpur Changes:
PurpurMC/Purpur@135e2c41 Updated Upstream (Paper)
PurpurMC/Purpur@e19b6707 Updated Upstream (Paper)
PurpurMC/Purpur@304174ec Updated Upstream (Paper)
PurpurMC/Purpur@4a3b139f Updated Upstream (Paper)
PurpurMC/Purpur@a14011f4 Updated Upstream (Paper)
PurpurMC/Purpur@3a1b29a9 [ci/skip] Updated Upstream (Paper)
PurpurMC/Purpur@5d1df704 Updated Upstream (Paper)
PurpurMC/Purpur@bc8c597b Updated Upstream (Paper)
PurpurMC/Purpur@ca56b414 Updated Upstream (Paper)
PurpurMC/Purpur@75efb975 Updated Upstream (Paper)
PurpurMC/Purpur@9249a2ca Updated Upstream (Paper)
PurpurMC/Purpur@8c293626 [ci/skip] ignore deprecation or removal warnings
PurpurMC/Purpur@65b1288b Updated Upstream (Paper)
PurpurMC/Purpur@96f0ee1e Add check for max growth age special case (#1652)
2025-04-12 16:47:06 -04:00
Taiyou06
b0bfeb2b11 fix buffer resize 2025-04-11 17:55:54 +02:00
Taiyou06
255433caba time to think something else 2025-04-11 10:52:50 +02:00
Dreeam
f335af3f63 Add back quantumleaper
Since the maven repo SSL issue is fixed
2025-04-10 15:36:37 -04:00
Taiyou06
d31559d60b i pushed this but need someone to test before and after for sake of testing 2025-04-10 15:05:59 +02:00
Dreeam
19c6e4028a Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@7612b5d0 Add identifier comparator for Plugin tickets
PaperMC/Paper@35b466e3 Add support for getting data components from entities
PaperMC/Paper@9f50f858 patch
PaperMC/Paper@42623c4b no patch
PaperMC/Paper@0cf73158 Bump to adventure 4.20.0 (#12391)
PaperMC/Paper@e8eba887 Merge remote-tracking branch 'origin/main' into update/1.21.5
PaperMC/Paper@212dfc94 Correctly track raw data reader index for antixray
PaperMC/Paper@cb0676a4 Commodore for Potions and Cows
PaperMC/Paper@62256c51 add missed cow diff
2025-04-10 05:03:36 -04:00
Dreeam
a919d254b2 Fix removeIf optimization patch 2025-04-10 05:01:29 -04:00
Dreeam
7110f539c7 Apply all 2025-04-08 17:15:31 -04:00
Dreeam
339bff6a8a Fix plugin compatibility
Fix checking whether inventory owner is player in calling PlayerInventoryOverflowEvent
2025-04-08 14:39:30 -04:00
Dreeam
1a64b379a6 Fix version fetcher 2025-04-07 20:00:12 -04:00
Dreeam
f832a754cb Fix build 2025-04-07 19:54:03 -04:00
Dreeam
e5dd121809 Lost Frequencies - Black Friday 2025-04-07 19:46:00 -04:00
Dreeam
6a07ebf769 Join Summit - palm of my hands (Odd Mob Remix)
Genre: Tech House
2025-04-07 17:41:47 -04:00
Dreeam
5e1be48cf8 Some work 2025-04-07 11:35:31 -04:00
Dreeam
9eca4c0c74 Apply Purpur Paper patch 2025-04-07 00:48:09 -04:00
Dreeam
ab479860ef Apply Purpur Minecraft patch 2025-04-06 23:53:34 -04:00
Dreeam
8501bc818d Apply Purpur API patch 2025-04-06 22:24:43 -04:00
Dreeam
4363934dc9 Fix NPE 2025-04-06 20:08:28 -04:00
Dreeam
fbb040e930 Fix 2025-04-06 14:43:38 -04:00
Taiyou06
4cd885a8c2 more virtual thread options 2025-04-06 14:44:44 +02:00