9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2026-01-06 15:51:31 +00:00
Commit Graph

78 Commits

Author SHA1 Message Date
Dreeam
b5e6e55765 [ci skip] cleanup 2025-06-11 06:09:21 +08:00
hayanesuru
f607930827 Revert
Revert "async saving player stats and advancements (#334)"

This reverts commit 107ae7954f.

Revert "optimize random tick (#357)"

This reverts commit 2e822d3714.

Revert "disable optimise-random-tick by default"

This reverts commit 20cc10e45f.

Revert "fix random tick do extra tick"

This reverts commit 4bf675075a.

Revert "fix tickingPos out of bounds"

This reverts commit 0eeb6e719c.

Revert "improve ServerStatsCounter compatibility"

This reverts commit 47c1783afc.

Revert "fix random tick"

This reverts commit aad17b0a5b.

Revert "revert level dat"

This reverts commit 8d36c9a5f7.
2025-06-08 19:22:42 +09:00
hayanesuru
107ae7954f async saving player stats and advancements (#334)
* async saving player stats and advancements

* remove thread check

* fix interrupt

* longer wait IO tasks time

* safe replace

* delay join while saving player

* mark as experimental

---------

Co-authored-by: Taiyou06 <kaandindar21@gmail.com>
2025-06-08 12:18:01 +09:00
hayanesuru
e2eaa9b746 dump pwt thread 2025-06-07 20:39:59 +09:00
hayanesuru
5e570748a7 Revert "fix pwt thread dead"
This reverts commit ffe613e0e9.
2025-06-07 14:44:37 +09:00
hayanesuru
ffe613e0e9 fix pwt thread dead 2025-06-07 14:33:28 +09:00
Dreeam
1e7a052aba [ci skip] Remove patch 2025-06-07 12:17:33 +08:00
Taiyou06
6cd4ebd40d Paper: Update CraftWorld#getForceLoadedChunks to avoid using getChunkAt 2025-06-06 10:54:30 +02:00
Dreeam
ae1e3e8355 Paper: Optimise CraftWorld#getLoadedChunks 2025-06-06 02:37:29 +08:00
Dreeam
1d30370d7a [ci skip] Cleanup 2025-06-06 01:28:17 +08:00
Dreeam
6d4f048474 Remove old config runAsyncTasksSync 2025-06-05 01:17:39 +08:00
hayanesuru
73cefcf57a optimize get biome 2025-06-03 18:55:45 +09:00
Taiyou
bec3d4c63b Async Data Read for Parallel World Ticking (#333)
* initial

* improve compat further

* cleanup and shit

* more cleanup

* rebase :3

* increase task queue size

* [ci skip] rebuild patches

* Optimise BlockEntity tickersInLevel

* rebase

* [ci skip] cleanup

* cleanup

* cleanup

* clear the buffer at shutdown

---------

Co-authored-by: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com>
Co-authored-by: hayanesuru <hayanesuru@outlook.jp>
2025-06-02 20:18:29 +03:00
Taiyou06
2fd5e7bc12 optimise player movement further 2025-06-01 21:21:21 +02:00
hayanesuru
a33f10a17a fix attribute crash server 2025-05-31 17:59:41 +09:00
Dreeam
42a2c8d2f6 Cleanup version fetcher 2025-05-28 01:19:57 +08:00
Dreeam
ccefbcfa8d Update input sanitization for purpur config 2025-05-26 18:24:50 +08:00
Dreeam
da18026680 Remove stream in CraftBlockData toString() 2025-05-24 22:51:55 +08:00
hayanesuru
2deb6989f2 Revert "optimize GoalSelector update order"
This reverts commit 1c6aa60769.
2025-05-23 23:54:41 +09:00
hayanesuru
1c6aa60769 optimize GoalSelector update order 2025-05-23 15:57:30 +09:00
Dreeam
efc2a39479 [ci skip] Cleanup 2025-05-21 18:30:32 +08:00
hayanesuru
ff9e4f506b optimize tracker (#323)
* optimize tracker

* optimize scaledRange

* cleanup

* fix loop

* fix loop

* optimize AttributeMap

* optimize TrackedEntity#seenBy

* revert packDirty

* cleanup
2025-05-17 15:10:27 +03:00
Dreeam
c823590b66 Updated Upstream (Paper/Gale)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@76753219 Allow Server#getDefaultGameMode before worlds are initialized (#12491)
PaperMC/Paper@c2bb144f Properly save level data async (#12530)
PaperMC/Paper@e2ca4773 Remove simplify remote item matching option for now
PaperMC/Paper@af71568b Update mache

Gale Changes:
Dreeam-qwq/Gale@00ce862b Updated Upstream (Paper)
2025-05-13 20:51:11 -04:00
Taiyou06
37ebb20d7e had to commit here, right 2025-05-11 00:55:25 +02:00
hayanesuru
a53ddc7f8c update async chunk send (#307)
* cleanup

* Async Chunk Send

---------

Co-authored-by: Taiyou06 <kaandindar21@gmail.com>
2025-05-06 20:28:16 +03:00
Dreeam
3f20ea5c71 Cleanup 2025-05-02 22:22:53 -04:00
Dreeam
f1df5351ca Update PlayerInventoryOverflowEvent (#304)
* Add configurable option in config for PlayerInventoryOverflowEvent and able to define the class name of listener
* Update checking method for overflow items handling logic, only fire event when actual listener is listening to it.
2025-05-02 16:13:19 -04:00
Taiyou06
1ae641bb76 [ci skip] rebuild patches 2025-05-01 22:09:41 +02:00
Taiyou06
38a433852a Revert "fix async chunk sending buffer (#301)"
This reverts commit bd3eb337d0.
2025-05-01 21:32:38 +02:00
Dreeam
4586961036 Back port some Paper patches
* PaperPR: Add ticket on player join to avoid chunk
* PaperPR: Fix save/load NaN Entity Motion
* PaperPR: Fix unnecessary map data saves
2025-05-01 15:05:05 -04:00
Dreeam-qwq
2b13b38801 Updated Upstream (Gale)
Upstream has released updates that appear to apply and compile correctly

Gale Changes:
Dreeam-qwq/Gale@d5d63524 Updated Upstream (Paper)
2025-05-01 01:41:29 +00:00
hayanesuru
bd3eb337d0 fix async chunk sending buffer (#301)
* fix Async chunk sending buffer size

* cleanup

* synchronized write nonEmptyBlockCount

* increase buffer initial capacity

* fix block entity map data race

---------

Co-authored-by: Taiyou06 <kaandindar21@gmail.com>
2025-05-01 03:53:32 +03:00
HaHaWTH
97f0017519 Use a dedicated thread pool for PWT event rescheduling 2025-04-26 07:32:35 +14: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
dff5b11bd9 cleanup 2025-04-17 02:45:56 -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
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
Dreeam
339bff6a8a Fix plugin compatibility
Fix checking whether inventory owner is player in calling PlayerInventoryOverflowEvent
2025-04-08 14:39:30 -04:00
hayanesuru
f1a31d88c8 Add timeout to AsyncPlayerDataSaving (#275)
* Add timeout to AsyncPlayerDataSaving

* dump thread if failed to save playerdata

* PlayerDataStorage#lockFor break loop after cancel
2025-03-31 18:34:44 +03:00
Dreeam
2f8915ce2b cleanup 2025-03-28 16:22:53 -04:00
hayanesuru
233da80a87 Update async playerdata saving (#269) 2025-03-28 17:25:23 +03:00
Dreeam
c36c34cf85 Updated Upstream (Paper/Gale)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@9b1798d6 Simplify custom payload handling (#12347)

Gale Changes:
Dreeam-qwq/Gale@ffc98037 Updated Upstream (Paper)
2025-03-27 16:24:19 -04:00
Taiyou06
89b317a1b0 PWT Fix: potentially fix BlockSpreadEvent 2025-03-26 18:46:06 +01:00
Dreeam
a7515a3918 Updated Upstream (Paper/Gale)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@9f004614 Update a whole lot of deprecated annotations
PaperMC/Paper@72f13f8b [ci/skip] Mention API Checks for CONTRIBUTING.md (#12315)
PaperMC/Paper@7cc6cb50 Check for trailing input in ItemFactory#createItemStack (#12312)
PaperMC/Paper@f49d18df Add get/set customName to Skull block (#12302)
PaperMC/Paper@894631f0 Make advancement ordering predictable (#12292)
PaperMC/Paper@2aad131e Add config option for command spam whitelist
PaperMC/Paper@bb3b7e69 Fix annotation mistakes
PaperMC/Paper@058455e4 InventoryView QOL open method (#12282)
PaperMC/Paper@f2258582 Fix firework entity not being removed when FireworkExplodeEvent is cancelled (#12268)
PaperMC/Paper@7819df10 Add getHeight method to ChunkData (#12311)
PaperMC/Paper@37b9ca1f Add flush parameter to World#save (#12330)
PaperMC/Paper@515e12ca Check if BUNDLE_CONTENTS is present in InventoryClickEvent (#12321)
PaperMC/Paper@5a6ab97b Add config to remove player as vehicle restriction in /ride (#12327)
PaperMC/Paper@c467df95 Add ItemStack#copyDataFrom (#12224)

Gale Changes:
Dreeam-qwq/Gale@d5143ee0 Updated Upstream (Paper)
Dreeam-qwq/Gale@63c396e7 Updated Upstream (Paper)
Dreeam-qwq/Gale@5c2147b4 Updated Upstream (Paper)
Dreeam-qwq/Gale@804ecea0 Rebuild patches
2025-03-25 03:09:21 -04:00
Creeam
dab3ca7e0d Band-aid fix for async events (#266) 2025-03-23 21:43:45 +03:00
Taiyou06
4c947f92ce add temporary compatibility for plugins to PWT 2025-03-22 14:20:34 +01:00
Dreeam
c276c2ba48 [ci skip] cleanup 2025-03-21 08:54:57 -04:00
Altiami
5afb65758c fix plugin interference with portal handling + fix missing thread local modification substitution for handling block spread (#262) 2025-03-20 13:12:19 +03:00
Taiyou06
b2c93c55a9 Fix skip EntityScheduler's executeTick checks if there isn't any tasks to be run 2025-03-20 08:56:52 +01:00
Dreeam
e34228f143 Readd Paper PR: Throttle failed spawn attempts 2025-03-19 13:52:03 -04:00