9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-27 10:59:16 +00:00
Commit Graph

481 Commits

Author SHA1 Message Date
Kobe ⑧
09fa2d6a0f Cache blockstate cache (#133)
* Cache blockstate cache

* rename
2024-10-22 08:19:08 -04:00
Dreeam
a5ddca9838 Remove areChunksLoaded check to avoid double get chunk
In `moonrise$areChunksLoaded`, it pre loop chunks in range and do fullchunk.get calls to check if the chunk is loaded. But get chunk calls are expensive, then I moved the check in the following loop to prevent double call it.

can be around 1 to 2 more faster in test (8192 stacked minecarts with 1min spark profiling).
2024-10-22 00:33:03 -04:00
Dreeam
31026f4fda Forget to add return 2024-10-22 00:26:22 -04:00
Kobe ⑧
5b0251fde8 Cleanup ChatImage protocol support & Further reduce worldgen allocation (#131)
* Cleanup protocol comment & Reduce worldgen allocations

* Cleanup protocol
2024-10-21 15:44:41 -04:00
Kobe ⑧
e324f59a03 Enhanced sentry dsn (#130) 2024-10-21 13:57:46 -04:00
Dreeam
520d6fae40 Added Optimized nearby alive players for spawning 2024-10-20 14:03:25 -04:00
Dreeam
6f4031c988 Reduce object complexity to make block isValid calls more efficient 2024-10-20 14:03:06 -04:00
Dreeam
f6a7007600 Added optimized trial spawner ticking 2024-10-20 14:02:48 -04:00
Dreeam
fb95f9ed07 Moonrise: Avoid streams for block retrieval in Entity#move 2024-10-20 14:01:56 -04:00
Dreeam
f890915133 Moonrise: Optimise checkInsideBlocks 2024-10-20 14:01:07 -04:00
Dreeam
743c6f7c38 Moonrise: Add direct lookup by chunk for NearbyPlayers 2024-10-20 14:00:52 -04:00
Dreeam
1828dd7918 Moonrise: Optimise BiomeManager#getFiddle 2024-10-20 14:00:44 -04:00
Dreeam
ffd9b8c817 Moonrise: Store ticking blocks in chunk sections as positions only 2024-10-20 14:00:35 -04:00
Dreeam
8097beeef7 Moonrise: Optimize nearby players for spawning iteration 2024-10-20 14:00:24 -04:00
Dreeam
2bb96e7084 [ci skip] Drop Optimize check nearby fire or lava on entity move 2024-10-20 14:00:07 -04:00
Dreeam
959e6324dd Remove stream and double iteration in enough deep sleeping player check 2024-10-17 01:53:03 -04:00
Dreeam
1fb19fc1e7 Updated Upstream (Paper/Gale)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@aebbdc9 Add proper async player disconnections

Gale Changes:
Dreeam-qwq/Gale@de0aa14 Updated Upstream (Paper)
2024-10-17 01:34:32 -04:00
Dreeam
9df5b5f72c Format patch 2024-10-16 17:07:20 -04:00
Dreeam
1f7276dbb7 Able to fully customize unknown command message 2024-10-13 02:13:54 -04:00
Dreeam
397c82bc86 Updated Upstream (Paper/Gale/Purpur)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@57c75a4 Fix CraftMagicNumbers#getTag (#11484)
PaperMC/Paper@b16c0ae Add offline PDC API (#8117)
PaperMC/Paper@4430e96 Add AnvilView#bypassEnchantmentLevelRestriction (#11475)

Gale Changes:
Dreeam-qwq/Gale@d6c9313 Updated Upstream (Paper)
Dreeam-qwq/Gale@a235416 Added notification when executed perf command

Purpur Changes:
PurpurMC/Purpur@4565f41 these options should be off by default
PurpurMC/Purpur@4671e1e show a message stating the removal of mojang profiler when running perf comamnd, closes #1591
PurpurMC/Purpur@e12a4de Updated Upstream (Paper)
2024-10-12 23:27:28 -04:00
Dreeam
dfcae93fa7 Able to show verified icon on client if No Chat Report installed and message signature disabled 2024-10-12 12:15:21 -04:00
Dreeam
b7a090e828 Added both minecraft:example and example format of entity type support for dab blacklist 2024-10-12 10:38:29 -04:00
Dreeam
3e45fc81a8 Update logger in Pufferfish patches 2024-10-12 10:12:03 -04:00
Dreeam
cca44728e7 Don't leave virtual threads in async scheduler thread pool 2024-10-12 09:50:56 -04:00
Dreeam
b4dbddae1b Use new ThreadPoolExecutor to create executor of VT scheduler
This probably can avoid high CPU usage when executing plugin's high frequency tasks
2024-10-08 12:08:57 -04:00
Dreeam
bc80a3e56c Disable async playerdata save temporarily
Async playerdata save may have issue in some strange circumstances
2024-10-07 09:20:21 -04:00
Dreeam
44487f5c61 Disable multithreaded tracker by default
To avoid useless reports from plugin related issue. You should enable it by yourself
2024-10-07 09:19:15 -04:00
Dreeam
3eb14107c3 Add TODO 2024-10-05 12:34:49 -04:00
Dreeam
387edb77c1 Updated Upstream (Purpur)
Upstream has released updates that appear to apply and compile correctly

Purpur Changes:
PurpurMC/Purpur@be61a07 Updated Upstream (Paper)
PurpurMC/Purpur@f154903 Updated Upstream (Paper)
PurpurMC/Purpur@0fa9a50 Updated Upstream (Paper)
PurpurMC/Purpur@d7a7c91 Updated Upstream (Paper)
PurpurMC/Purpur@20fa61e Updated Upstream (Paper)
PurpurMC/Purpur@501e7c5 Updated Upstream (Paper)
PurpurMC/Purpur@2a50638 Updated Upstream (Paper)
PurpurMC/Purpur@639bcbd Updated Upstream (Paper)
PurpurMC/Purpur@bcf8103 remove obsolete allowUnsafeEnchants config option
PurpurMC/Purpur@51f15ee fully remove obsolete allowUnsafeEnchants config option
PurpurMC/Purpur@3d0716d Fix colored shulker box contents not dropping when destroyed, supercedes #1594
PurpurMC/Purpur@12e2926 [ci skip] drop old migration patch
PurpurMC/Purpur@212c942 delegate itemstack convenience methods
PurpurMC/Purpur@2eaea6a switch to JSpecify annotations
2024-10-05 12:25:41 -04:00
Dreeam
f15d5c5cef Updated Upstream (Paper/Gale)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@e7e1ab5 Finish converting most of the undeprecated api to jspecify
PaperMC/Paper@69ffbec Fix hex color check
PaperMC/Paper@709f0f2 Use components properly in ProfileWhitelistVerifyEvent (#11456)
PaperMC/Paper@fb76840 [ci skip] Add section on nullability annotations (#11461)
PaperMC/Paper@7cd4f2c Check if leash tag has a uuid

Gale Changes:
Dreeam-qwq/Gale@c81a4b5 Updated Upstream (Paper)
Dreeam-qwq/Gale@da78f95 Updated Upstream (Paper)
Dreeam-qwq/Gale@c8d1f9b Updated Upstream (Paper)
2024-10-04 19:36:14 -04:00
Dreeam
6ffcb57cd2 Fix duplicate mark map decorations dirty 2024-10-02 13:50:14 -04:00
Dreeam
532da4bc41 [ci skip] Add TODO 2024-09-30 07:11:05 -04:00
Dreeam
600723edc3 Fix shulker box contents drop when destroyed 2024-09-30 06:27:24 -04:00
Dreeam
850adae00c Updated Upstream (Paper/Gale)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@f9c7f2a Begin switching to JSpecify annotations (#11448)
PaperMC/Paper@e3c8a8e Add PlayerInsertLecternBookEvent [1.20 port] (#7305)
PaperMC/Paper@b410fe8 Configurable per-world void damage offset/damage(#11436)
PaperMC/Paper@ea00be3 Do not NPE on uuid resolution in player profile (#11449)
PaperMC/Paper@ba3c29b Finish converting all events to jspecify annotations

Gale Changes:
Dreeam-qwq/Gale@51fb9cd Updated Upstream (Paper)
Dreeam-qwq/Gale@7f08ee6 Updated Upstream (Paper)
2024-09-30 06:23:20 -04:00
Dreeam
72d744bf48 Updated Upstream (Paper/Gale)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@41bc31b Update paperweight to 1.7.3 (#11445)
PaperMC/Paper@e17eb6b Improve entity effect API (#11444)
PaperMC/Paper@7b03141 Add startingBrewTime (#11406)
PaperMC/Paper@355b1cb Add API for explosions to damage the explosion cause (#11180)
PaperMC/Paper@6d7a438 Call bucket events for cauldrons (#7486)

Gale Changes:
Dreeam-qwq/Gale@2c4cde4 Updated Upstream (Paper)
Dreeam-qwq/Gale@d4d81da [ci skip] Update paperweight
2024-09-29 11:39:11 -04:00
Dreeam
e860fce788 Try to fix mutlithreaded tracker NoSuchElement in broadcast attribute packets 2024-09-28 11:26:37 -04:00
Dreeam
1b8cb4f747 Clean up change max stack count 2024-09-28 11:23:20 -04:00
Dreeam
5e82c7c7fc Updated Upstream (Paper/Gale)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@20ec622 use correct types for preloading CraftRegistry
PaperMC/Paper@627cc64 Adjust HAProxy's existance to log for console masters (#11433)
PaperMC/Paper@01c4820 Call EntityDropItemEvent when a container item drops its contents (#11441)
PaperMC/Paper@9c76642 Deprecate for removal Block#isValidTool (#11439)
PaperMC/Paper@dd6d184 Remove redundant fillUsableCommands call (#11425)
PaperMC/Paper@f33611c fix ItemStack#removeEnchantments creating non-stackable items (#11442)
PaperMC/Paper@8f56db8 Add enchantWithLevels with tag specification (#11438)
PaperMC/Paper@b7ab22d Fix console completions on invalid commands (#7603)
PaperMC/Paper@41bc31b Update paperweight to 1.7.3 (#11445)

Gale Changes:
Dreeam-qwq/Gale@0f495ae Updated Upstream (Paper)
2024-09-28 11:17:28 -04:00
Dreeam
b414b0152c Add Leaf legacy config backup notification 2024-09-28 10:37:59 -04:00
Dreeam
4548da8fd6 Fix popup still appear if chat signature disabled
Set enforce secure chat to true in login packet to remove popup when disabled the chat signature.
2024-09-25 10:10:56 -04:00
Dreeam
023fc3b683 Improve MC-183518 fix (#124)
Co-authored-by: Kobe ⑧ <102713261+HaHaWTH@users.noreply.github.com>
2024-09-25 09:42:52 -04:00
Dreeam
7e39ec4d17 Updated Upstream (Paper/Gale)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@78feecb Deprecate BlockType#isInteractable (#11427)
PaperMC/Paper@1cb2bf4 Add velocity forwarding secret env override (#10127)
PaperMC/Paper@81d9448 Add ItemStack array serialization methods (#10387)
PaperMC/Paper@2f50b87 Fixup command precprocess cancellation (#11424)
PaperMC/Paper@540deb7 Fix Color Particle API (#10895)
PaperMC/Paper@e8297c4 Expand out datapack API (#10828)
PaperMC/Paper@4514c71 Only call EntityPortalExitEvent if entity is actually in a portal
PaperMC/Paper@acdd6d3 make MenuType implement FeatureDependant
PaperMC/Paper@9b1ee0d Add missing key files and cleanup registry definition order
PaperMC/Paper@1bc02e6 Fix tag lifecycle event handlers not disabling /reload

Gale Changes:
Dreeam-qwq/Gale@7dbafa8 Updated Upstream (Paper)
Dreeam-qwq/Gale@030aa7e Updated Upstream (Paper)
Dreeam-qwq/Gale@6d51182 Updated Upstream (Paper)
Dreeam-qwq/Gale@669798b Updated Upstream (Paper)
2024-09-25 04:05:46 -04:00
Dreeam
40592d097a Updated Upstream (Gale)
Upstream has released updates that appear to apply and compile correctly

Gale Changes:
Dreeam-qwq/Gale@4033006 Updated Upstream (Paper)
2024-09-22 01:40:47 +00:00
Dreeam
d233f6bfd8 Update, cleanup Purpur afk improvement patch & Fix cooldown bypass issue for signed chat command 2024-09-21 02:21:38 -04:00
Dreeam
29915218cb Updated Upstream (Paper/Gale)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@2aaf436 Validate slot in PlayerInventory#setSlot (#11399)
PaperMC/Paper@5c82955 Only mark decorations dirty if a removal actually occurs (#11413)
PaperMC/Paper@c5a1066 Remove wall-time / unused skip tick protection (#11412)

Gale Changes:
Dreeam-qwq/Gale@3a10fbf Updated Upstream (Paper)
2024-09-20 22:46:07 -04:00
Dreeam
5cb2cb6287 Optimize active effects filter and map to particles in livingentity 2024-09-17 02:40:50 -04:00
Dreeam
f605a2a2d2 Fix tracker player NPE 2024-09-17 02:26:13 -04:00
Dreeam
8037489ef4 [ci skip] Add TODO for Change max stack count 2024-09-17 01:40:16 -04:00
Dreeam
337a94cda9 Updated Upstream (Paper/Gale/Purpur)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@d1a72ea Updated Upstream (Bukkit/CraftBukkit/Spigot) (#11405)
PaperMC/Paper@0a53f1d Set default drop behavior for player deaths (#11380)
PaperMC/Paper@951e7dd Fix TrialSpawner forgetting assigned mob when placed by player (#11381)
PaperMC/Paper@13a2395 Fix enable-player-collisions playing sounds when set to false (#11390)
PaperMC/Paper@1348e44 Prevent NPE when serializing unresolved profile (#11407)

Gale Changes:
Dreeam-qwq/Gale@f346681 Updated Upstream (Paper)
Dreeam-qwq/Gale@bba1737 Updated Upstream (Paper)

Purpur Changes:
PurpurMC/Purpur@88352c3 Updated Upstream (Paper)
PurpurMC/Purpur@dee41bc Updated Upstream (Paper)
PurpurMC/Purpur@fdfc12e Updated Upstream (Paper)
PurpurMC/Purpur@bc7bcbb Fix elytra durability setting not working properly (#1589)
PurpurMC/Purpur@8af4ea6 Updated Upstream (Paper)
PurpurMC/Purpur@8332fa4 Updated Upstream (Paper)
2024-09-17 01:38:58 -04:00
Dreeam
0fd4eb732f Format & Fix patches 2024-09-16 03:01:59 -04:00