9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-23 00:49:31 +00:00
Commit Graph

205 Commits

Author SHA1 Message Date
Dreeam
7973f6b3b6 Update changes from ver/1.21.4 branch 2025-06-21 10:12:47 +08:00
hayanesuru
397abc65da fix boundary of optimize random tick 2025-06-21 02:03:33 +09:00
HaHaWTH
82eaa5d3f3 Hide seed obfuscation key from spark 2025-06-20 03:22:06 +14:00
Taiyou
731950179b Optimize random tick (#359)
* optimize random tick

* rebase

* fix random tick chance check

* add back zero check fix always tick on first tick

* optimize random check

* cleanup

* remove 0 to 2 random on amount chosen

* cleanup

* add queue and reuse block count

* reduce LevelChunkSection#tickingBlocks memory overhead

* Revert "reduce LevelChunkSection#tickingBlocks memory overhead"

This reverts commit 942376481b.

* fix overflow

* [ci skip] rebuild patches

---------

Co-authored-by: hayanesuru <hayanesuru@outlook.jp>
2025-06-18 14:16:33 +09:00
hayanesuru
adb6a645f6 cleanup & remove threshold in async target finding 2025-06-18 14:10:57 +09:00
HaHaWTH
0e1ff0ecd2 Port random generator fix from 1.21.4 2025-06-15 19:38:04 +14:00
Dreeam
03c04f0dcc Optimize leaves protocol manager & Fix diff 2025-06-15 00:46:13 +08:00
Dreeam
e9a24c833d Update changes from ver/1.21.4 branch 2025-06-14 03:34:46 +08:00
HaHaWTH
8e2099e975 Fast BiomeManager seed obfuscation 2025-06-14 04:09:07 +14:00
Dreeam
9c0d0a828c Temp disable hot reload for async features 2025-06-13 22:03:34 +08:00
Dreeam
bc4ca38c83 Pass exception as throwable instead of string 2025-06-13 21:35:23 +08:00
MrlingXD
15ef4ca901 Optimize more for rail optimization (#368)
* Optimize more for rail optimization

* remove threadlocal
2025-06-13 07:57:11 +08:00
Dreeam
2d193b574b Fix entity bounding box traverse blocks iterate
Reset both x and y values on z level iteration , to prevent skip entire y level loop on z level iteration and cause some issues, e.g. inconsistent with vanilla
2025-06-13 04:08:46 +08:00
Dreeam
a11f042109 Fix entity bounding box traverse blocks iterate
Reset both x and y values on z level iteration , to prevent skip entire y level loop on z level iteration and cause some issues, e.g. inconsistent with vanilla
2025-06-13 04:07:23 +08:00
hayanesuru
ab24c46fb5 remove shutdown log if mob spawning disabled 2025-06-11 12:51:32 +09:00
hayanesuru
d2dc5a0895 remove preload mob spawning position 2025-06-11 12:51:32 +09:00
Dreeam
38fe533d32 Some fixes for failed to shutdown if some async are disabled 2025-06-11 07:59:27 +08:00
Dreeam
33b0fd1daf Some fixes for failed to shutdown if some async are disabled 2025-06-11 07:56:22 +08:00
Dreeam
b5e6e55765 [ci skip] cleanup 2025-06-11 06:09:21 +08:00
Dreeam
915f755b01 Updated Upstream (Paper/Purpur/Leaves)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@03efecf0 Do not fire PlayerDropItemEvent for /give command
PaperMC/Paper@3527ccdf feat: expose updateDemand and restock on Villager (#12608)
PaperMC/Paper@320f25cb fix sponge-absorb deleting chest content (#12647)
PaperMC/Paper@95565e0f Add missing attribute serialization updater
PaperMC/Paper@519e4224 Fix infinite loop in RegionFile IO

Purpur Changes:
PurpurMC/Purpur@eb0ba67d Updated Upstream (Paper)
PurpurMC/Purpur@7c6502dc Updated Upstream (Paper)
PurpurMC/Purpur@aa289e2c Updated Upstream (Paper)

Leaves Changes:
LeavesMC/Leaves@f09fbb24 1.21.5 (#470)
LeavesMC/Leaves@f1cc3ef9 Fix version fetch
LeavesMC/Leaves@73bd42af Remove fast resume, mojang added it
LeavesMC/Leaves@59856751 Configurable trading with the void
LeavesMC/Leaves@9d32c5bd Fix protocols (#534)
2025-06-11 06:01:22 +08:00
Dreeam
ca56147d0f Update changes from ver/1.21.4 branch 2025-06-11 05:20:38 +08:00
hayanesuru
b6ec152037 fix server stuck on wait shutdown 2025-06-10 21:10:49 +09:00
Dreeam
b4ad51dbb5 Correct optimize-block-entities config name to keep consistency
Co-Authored-By: Pascalpex <68245106+Pascalpex@users.noreply.github.com>
2025-06-10 12:26:14 +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
aad17b0a5b fix random tick 2025-06-08 17:42:00 +09:00
hayanesuru
4bf675075a fix random tick do extra tick 2025-06-08 15:23:30 +09:00
hayanesuru
20cc10e45f disable optimise-random-tick by default 2025-06-08 13:26:11 +09:00
hayanesuru
2e822d3714 optimize random tick (#357)
* random tick

* cleanup

* [ci skip] cleanup
2025-06-08 13:21:54 +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
Taiyou06
acf2c14f80 Use ActivationList on runningBehaviours 2025-06-08 00:15:07 +02:00
Taiyou06
da48e6e0fb remove tick control on getRunningBehaviors 2025-06-07 23:11:35 +02:00
Taiyou06
355cb791a6 disable async target find when pwt enabled 2025-06-07 12:49:27 +02:00
Dreeam
0c09ca7a66 Drop configurable smooth teleport 2025-06-07 17:48:46 +08:00
Dreeam
b70aaa0450 Add old Blast Protection explosion knockback behavior (#346)
Added configurable old Blast Protection explosion knockback behavior that is from <=1.21.4 version.
2025-06-06 13:10:31 +08:00
Dreeam
192608bbc4 Should be inverted 2025-06-06 06:09:41 +08:00
Dreeam
4ebb4da022 do not log invalid flatten text component parse
The error will throw and spam when tried to load / upgrade text component on legacy item from very old version, e.g. 1.16.5.
The item's text component can load and be saved normally, but spam error in console just very annoying when everytime loaded them before saved.
2025-06-06 05:56:47 +08:00
Dreeam
1d30370d7a [ci skip] Cleanup 2025-06-06 01:28:17 +08:00
Dreeam
72a8fb8d95 Readd PWT 2025-06-06 00:26:36 +08:00
Dreeam
6d4f048474 Remove old config runAsyncTasksSync 2025-06-05 01:17:39 +08:00
Dreeam
74bc79d408 Cleanup sentry 2025-06-04 23:53:53 +08:00
hayanesuru
672000867b cleanup 2025-06-05 00:22:17 +09:00
hayanesuru
5ad9ec1b59 move shutdown executor 2025-06-04 22:09:41 +09:00
hayanesuru
9d6e3ae5ff preload mob spawning position 2025-06-04 21:34:07 +09:00
hayanesuru
e32cdae1bf update default config value 2025-06-04 01:22:23 +09:00
hayanesuru
2cd4838b7e shutdown mob spawning thread on exit 2025-06-04 00:39:42 +09:00
hayanesuru
8e48e51e76 add config 2025-06-03 22:38:15 +09:00
hayanesuru
347ef03d5f remove unused KineticDamage config 2025-06-03 15:29:00 +09:00
Dreeam
eadaf2c19d Fix AsteorBar protocol 2025-06-03 10:02:42 +08:00
Dreeam
3d14e36fe8 Readd Leaves protocols 2025-06-03 09:49:56 +08:00
Dreeam
3b74dc2f21 Merge branch 'ver/1.21.4' into dev/1.21.5 2025-06-03 07:23:43 +08:00