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

131 Commits

Author SHA1 Message Date
Taiyou06
d112c777b5 micro optimizations for random tick (Author: @Altiami) 2025-03-22 12:02:36 +01:00
Taiyou06
0a6fc44dd1 remove streams on up updateConnectedPlayersWithinRange 2025-03-22 12:02:27 +01:00
Taiyou06
37438b6010 optimize ContextMap.create 2025-03-22 00:11:14 +01:00
Taiyou06
697c0634ba micro optimize addOrUpdateTransientModifier 2025-03-22 00:10:59 +01:00
Dreeam
f7db1ed867 Added RaytraceAntiXray SDK integration 2025-03-21 08:55:21 -04:00
Dreeam
c276c2ba48 [ci skip] cleanup 2025-03-21 08:54:57 -04:00
Taiyou06
db4ee06274 Merge remote-tracking branch 'origin/ver/1.21.4' into ver/1.21.4 2025-03-20 12:19:21 +01:00
Taiyou06
e60fa3d83c reduce mem usage on sorting 2025-03-20 11:41:43 +01: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
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