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

121 Commits

Author SHA1 Message Date
Dreeam
5f20b9ff29 Improve BlockEntity ticking isRemoved check
Co-Authored-By: kidofcubes <40485669+kidofcubes@users.noreply.github.com>
2025-03-19 16:34:27 -04:00
Dreeam
833ab21058 [ci skip] Fix typo 2025-03-19 14:59:29 -04:00
Taiyou06
7df3894e01 rebase 2025-03-19 19:48:11 +01:00
Taiyou06
0a42a6f5ae Merge remote-tracking branch 'origin/ver/1.21.4' into ver/1.21.4 2025-03-19 19:41:12 +01:00
Taiyou06
492f9de0c6 re-add:use BFS on getSlopeDistance 2025-03-19 19:40:46 +01:00
Dreeam
d122a89765 [ci skip] cleanup 2025-03-19 14:07:40 -04:00
Dreeam
e34228f143 Readd Paper PR: Throttle failed spawn attempts 2025-03-19 13:52:03 -04:00
Dreeam
68ea7d4595 Validate recipe display index before retrieving it 2025-03-19 13:48:23 -04:00
Taiyou06
84b5a4eb1c Remove streams on InsideBrownianWalk 2025-03-19 15:28:53 +01:00
Taiyou06
03fa053d56 optimize findClosest 2025-03-19 14:06:56 +01:00
Taiyou06
7bbca50a52 Merge remote-tracking branch 'origin/ver/1.21.4' into ver/1.21.4 2025-03-19 13:02:48 +01:00
Taiyou06
d3c0f5ddbc [ci skip] update benchmark numbers properly 2025-03-19 13:01:41 +01:00
Taiyou06
204269c287 [ci skip] update benchmark numbers 2025-03-19 12:59:44 +01:00
Taiyou06
70f923cb8b remove bucket sort and make radix sort parallel 2025-03-19 12:31:51 +01:00
Dreeam
53ae2ba800 PaperPR: Fix cancelled Projectile Events still consuming arrows 2025-03-19 00:48:24 -04:00
Altiami
e3a765ed85 Fix critical bugs with SparklyPaper parallel world ticking (#260)
* Revert "potentially fix the portal issue (unsure how it can be reproduced)"

This reverts commit 68c5449f61.

* Fix several parallel world ticking bugs
- portal process being null when teleporting between dimensions
- teleporting via portal not respecting config
- villager POI release not respecting config
- villager throwing exception when trying to go to potential job site in another dimension
- ender pearl throwing exception when trying to teleport thrower to another dimension
2025-03-18 19:34:24 +03:00
Taiyou06
68c5449f61 potentially fix the portal issue (unsure how it can be reproduced) 2025-03-18 12:21:59 +01:00
Dreeam
e77896f346 Add config post load & Fix 2025-03-17 23:07:42 -04:00
Dreeam
40fa45ef8d Refactor Improve Purpur AFK system
* Move Leaf config init before Minecraft commands register
* Fix broken afk command cooldown
* Cleanup code
2025-03-17 20:54:15 -04:00
Dreeam
d3640fe0a4 Fix build 2025-03-17 15:23:34 -04:00
Dreeam
f6a422f273 Bump dependencies 2025-03-17 14:31:25 -04:00
Dreeam
52477a91ae Updated Upstream (Paper/Gale)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@f4f27551 [ci/skip] Clarify BlockFadeEvent#getNewState javadocs (#12250)
PaperMC/Paper@102c8bbc Add config for updating equipment on player actions (#12275)
PaperMC/Paper@f0388e2f Call EntityPushedByEntityAttackEvent for Mace AoE (#12257)
PaperMC/Paper@c37b890c More deferred requireNonNull message creation
PaperMC/Paper@310f5229 Add unsupported config option and internal API to simplify remote item matching
PaperMC/Paper@6ea42025 Send all attributes on respawn (#12274)
PaperMC/Paper@2d3a1385 [ci/skip] Refine recipe management API documentation. (#12287)
PaperMC/Paper@aaaeb4e1 [ci/skip] Make compilation logs actually readable (#12276)
PaperMC/Paper@bb1beda6 feat: add event to wind charge explode (#12248)

Gale Changes:
Dreeam-qwq/Gale@43bfa513 Updated Upstream (Paper)
Dreeam-qwq/Gale@ab0a7189 Updated Upstream ()
Dreeam-qwq/Gale@27ddb2fa [ci/skip] Added merge announcement
Dreeam-qwq/Gale@523e7745 [ci/skip] Fix announcement format
Dreeam-qwq/Gale@d91ed070 [ci/skip] Update annocement
2025-03-17 14:30:27 -04:00
Altiami
2d6e6b28f3 SparklyPaper: Parallel world ticking (#246)
* SparklyPaper: Parallel world ticking

* per world mspt (/leaf mspt)

* fix chunk loading off-main violations

* rebase and make tpsbar per world

* temp fix for async chunk sending crash

* add /leaf mspt compact and more cleanup

* TCRF SparklyPaper (Pathothingi): Fix Nether and End portals for non-player entities

* fix Potothingi's name

* change thread name

* fix plugin related async ticks (hopefully)

* Revert "fix plugin related async ticks (hopefully)"

This reverts commit 7a9b79adc538989ecbec162dd377245706522a87.

* Add more config guards

* rebase on upstream

* actually add the paper patches

* fix villagers failing to release poi

* rebase

* make async chunk send work with parallel world ticking again

---------

Co-authored-by: Taiyou06 <kaandindar21@gmail.com>
2025-03-17 17:54:12 +03:00
Taiyou06
e2331e0d71 [ci skip] rebuild patches 2025-03-17 14:18:43 +01:00
Taiyou06
472a1c5c19 [ci skip] benchmark numbers part. 2 2025-03-16 22:04:12 +01:00
Taiyou06
adcdd3948a [ci skip] benchmark numbers part. 1 2025-03-16 21:54:33 +01:00
Taiyou06
7e3022e313 [ci skip] small cleanup 2025-03-16 20:37:49 +01:00
Dreeam
f6aa7635f3 [ci skip] cleanup (14/14) 2025-03-14 15:54:02 -04:00
Dreeam
b3e3802517 Bump dependencies 2025-03-13 06:48:10 -04:00
Dreeam
daacfd136e Exclude outdated protobuf version from mysql connector
Able to use custom / latest protobuf  version in plugin side
2025-03-13 06:42:50 -04:00
Taiyou06
c5d2643826 Merge branch 'ver/1.21.4' of https://github.com/Winds-Studio/Leaf into ver/1.21.4 2025-03-13 10:31:47 +01:00
Taiyou06
b8ce03b0b4 fix paper anti xray on async chunk send 2025-03-13 10:30:54 +01:00
Dreeam
87dc993caf [ci skip] cleanup (8/14) 2025-03-12 18:16:10 -04:00
Dreeam
84d71fb533 [ci skip] cleanup (8/14) 2025-03-12 16:08:10 -04:00
Taiyou
2a6eda6d32 Configurable spawner block settings (#251)
* custom SpawnerSettings

* [ci/skip] cleanup

* [ci/skip] cleanup

* Use vanilla min/max spawn delay as default values

* Move config to gameplay
2025-03-10 06:10:28 -04:00
Taiyou
3509e736d5 Fix async chunk send (#252)
If a chunk is already in the sentChunks set, we simply return early instead of throwing an exception.

Made moonrise$addReceivedChunk call to gracefully handle the case where a chunk is already marked as received.

If the chunk was already received, we remove the chunk from our sent list and return early.
2025-03-09 16:18:21 -04:00
Dreeam
5603fe2984 Updated Upstream (Paper/Gale)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@8e69d981 Player - Expose player score (#12243)
PaperMC/Paper@2526fe06 Add type to represent unimplemented data component types (#12222)
PaperMC/Paper@20df25d3 Don't resync all attributes when updating scaled health (#12232)
PaperMC/Paper@43f37b1b Remove ItemFactory#enchantWithLevels range check for vanilla parity (#12209)
PaperMC/Paper@a2b0ff06 Fix cancelling PlayerInteractEvent at (0, 0, 0) (#12215)
PaperMC/Paper@df96f8a0 Correctly handle events for end portal (#12246)
PaperMC/Paper@25654978 Cancel PlayerLaunchProjectileEvent properly for enderpearls (#12223)
PaperMC/Paper@34c794dc ServerTickManager#requestGameToSprint - Silence command like feedback (#12220)
PaperMC/Paper@3d13b115 fix: switch back to using a snapshot for velocity-natives
PaperMC/Paper@7afae7f4 Add client tick end event (#12199)
PaperMC/Paper@e5d988df Revert "Fix cancelling PlayerInteractEvent at (0, 0, 0) (#12215)"
PaperMC/Paper@743346a5 Force update attributes
PaperMC/Paper@1a7288aa Adjust unloaded chunk check for block digging

Gale Changes:
Dreeam-qwq/Gale@7fa44170 Updated Upstream (Paper)
Dreeam-qwq/Gale@071288bc Updated Upstream (Paper)
Dreeam-qwq/Gale@52645592 Updated Upstream (Paper)
2025-03-09 15:30:21 -04:00
Taiyou06
c23e385f25 potentially fix async mob spawning cap calculation 2025-03-09 19:04:53 +01:00
HaHaWTH
77759079e1 Add experimental comment to AsyncChunkSend 2025-03-09 19:29:50 +14:00
Creeam
4e00b55022 Fix structure locate issue related to faster random generator (#248) 2025-03-08 14:07:31 -05:00
Dreeam
0d57b02c40 Updated Upstream (Paper/Gale)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@45198578 Set old position / rotation for newly created entities

Gale Changes:
Dreeam-qwq/Gale@e007f34a Updated Upstream (Paper)
2025-03-08 10:05:31 -05:00
Dreeam
8c1ad8d658 Updated Upstream (Paper/Gale)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@b5066268 Remove unused light queue size option (#12201)
PaperMC/Paper@1d5e5a57 Document replacement for Skull owner profile methods (#12195)
PaperMC/Paper@8de7e356 Add null check to level ref in Entity constructor (#12218)
PaperMC/Paper@a866e366 Fix MenuType.SMITHING JavaDocs (#12226)
PaperMC/Paper@5538d24d Fix "DEFAULT" SpawnReason of fish spawned by bucket (#12227)
PaperMC/Paper@0a4eb8f3 Send the pong response packet immediately. This packet is similar to the keep alive packet and is processed async. (#12242)
PaperMC/Paper@7a3d0c4e Fix recipe being always null in PrepareItemCraftEvent from the api (#12237)
PaperMC/Paper@a6ce734f Fix zombie villager not dropping item once cured (#12230)
PaperMC/Paper@ce300162 Skip alpha channel for custom model data component (#12205)

Gale Changes:
Dreeam-qwq/Gale@ef499e4c Updated Upstream (Paper)
2025-03-08 01:31:44 -05:00
Dreeam
e38a717f8a [ci skip] cleanup (6/14) 2025-03-07 15:49:01 -05:00
Dreeam
efc9314dd9 [ci skip] cleanup (1/14) 2025-03-07 15:18:16 -05:00
Dreeam
ab4fe8ea44 [ci skip] cleanup 2025-03-07 15:02:52 -05:00
Taiyou06
bf437d81b1 temp: remove BFS on getSlopeDistance in fluids 2025-03-06 10:06:30 +01:00
Taiyou06
2d54fdea9b fixed a small concurrency issue on flushQueue(?) 2025-03-05 22:24:28 +01:00
Taiyou
cd7689b16f Chunk improvements (#231)
* perf: SpatialPlayerIndex for isChunkNearPlayer

* perf: ensureCapacity with collectTickingChunks

* perf: optimize getSlopeDistance

* perf: optimize AABB Intersections

* perf: implement custom arrays for regions and caches

* perf: Improve SortedArraySet sorting (needs testing)

* rebase 1.21.4

* perf: optimize ClientBoundLightUpdatePacketData

* perf: O(1) Array Writes during Chunk Loading

* perf: Optimize LinearPalette (no not the linear format)

* perf: Rewrite ConcurrentLongHashSet

* rebase 1.21.4

* Fix Multithreaded Tracker (#236)

* duke gonna arrest me

* i hate git v2

* rebase

* dont worry ill change the name of this patch

* perf: Rewrite ConcurrentLongHashSet again

* perf: Optimize sendChunk

* [ci skip]

* cleanup

* aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

* cleanup

* remove streams on LinearPalette and SerializableChunkData

* actually commit them lmao

* actually commit them lmao 2

* fix

* rebase

* perf: clone less (could help with skyblocks)

* perf: more unload stuff

* perf: manual loop unrolling and bulk copy

* initial size for SerializeableChunkData

* perf: async chunkSend

* cleanup asyncChunkSend

* remove experimental tag

* rebase

---------

Co-authored-by: Creeam <102713261+HaHaWTH@users.noreply.github.com>
Co-authored-by: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com>
2025-03-05 22:45:26 +03:00
Taiyou06
ae5cd82c12 add a toggle 2025-03-05 15:37:38 +01:00
Taiyou06
62d81685c1 Merge remote-tracking branch 'refs/remotes/origin/ver/1.21.4' into networking 2025-03-03 17:33:35 +01:00