9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-29 20:09:17 +00:00
Commit Graph

1551 Commits

Author SHA1 Message Date
Kobe ⑧
6baa11014c Move config annotations (#178)
* Move config annotations & Add @Experimental

* Requested changes
2024-12-02 15:02:15 -05:00
Dreeam
9e2e128eea Fix crash using non-valid name as skull name 2024-12-02 01:49:29 -05:00
Dreeam
8a96160f5f Updated Upstream (Pufferfish)
Upstream has released updates that appear to apply and compile correctly

Pufferfish Changes:
pufferfish-gg/Pufferfish@95ef348
Make iterator counting in IteratorSafeOrderedReferenceSet thread-safe for async mob spawning (#109)
2024-11-30 21:09:09 -05:00
Dreeam
0510b51ed3 Fix terminal color on Windows (#176)
* Fix terminal color on Windows

Windows doesn't have environment variables TERM and COLORTERM by default, but we assuming that it supports the `truecolor` for terminal.

* Add back revert to original java console on Java 22
2024-11-30 20:01:54 -05:00
Kaan D.
714cb8a9cf [ci skip] Update README.md (#177) 2024-11-30 16:54:13 -05:00
Kobe ⑧
7db5bae367 Add config for Smooth teleport (#174)
* Smooth teleport config

* Fix respawn & Update dependency

* Move condition for readability
2024-11-29 18:03:39 -05:00
Dreeam
4dc313c4e4 Simplify canHoldFluid condition logic
Cache the result of half of canHoldFluid logic, since there is a state#is in this method,
it uses map contains to do iteration to check whether a block has a specific block tag key,
which the contains iteration call is very expensive if called everytime
Also, I simplified the condition logic in the original method to be more readable.
It is actually useless since the result is cached, just makes it look better.

In the test, it can improve ~30% performance in ~1577000 times of canHoldFluid calls (~159ms -> ~111ms)
2024-11-29 17:59:02 -05:00
Dreeam
ec419e7923 Cache random tick block status 2024-11-29 17:58:49 -05:00
Dreeam
1d2cbe81fb Cache chunk key
Cache convert process between ChunkPos < - > chunkKey
2024-11-29 17:58:21 -05:00
Dreeam
8287c1769f Paper: Improve performance of RecipeManager#removeRecipe 2024-11-29 17:58:01 -05:00
Dreeam
f6ae4572c6 PaperPR: Fix some beacon event issues 2024-11-29 17:57:50 -05:00
Dreeam
101ab7a424 Fix MC-150224
Related MC issue: https://bugs.mojang.com/browse/MC-150224

This patch was backported from Minecraft snapshot 24w46a.
2024-11-29 17:57:38 -05:00
Dreeam
0cf7aa045c Remove stream in matchingSlot 2024-11-29 17:57:26 -05:00
Dreeam
11cb8d32ba Remove stream in updateFluidOnEyes 2024-11-29 17:57:16 -05:00
Dreeam
003ee6f427 Even better inline world height 2024-11-29 17:55:29 -05:00
Kobe ⑧
2c4d9d40d1 Some changes to optimizations and api (#172)
* Add faster random generator for Entity random

* Option for replace worldgen random with L64X128MixRandomSource & Cleanup

* Allocate 1 thread for AsyncLocator by default

* Rename to worldgen

* Add config option for backed random generator

* Add SplittableGenerator check

* Cache random generator

* Revert cache
Caching RNGs will cause some issues during worldgen

* Set to final & cleanup

* LevelChunkMixin

* Filter null values

* Use Xoroshiro128PlusPlus by default

* Benchmark results

* Revert changes

* Better smooth teleport api

* Set seed to 0
2024-11-28 18:26:03 -05:00
Dreeam
a3f3dbab2f Paper: Fix: move to jline-terminal-ffm on java 22+ and fall back to jni on 21 2024-11-28 16:34:29 -05:00
Dreeam
b361294778 Updated Upstream (Leaves)
Upstream has released updates that appear to apply and compile correctly

Leaves Changes:
LeavesMC/Leaves@a8a9d1b Remove useVanillaWorldScoreboardNameColoring to fix #367
LeavesMC/Leaves@257dd23 Update Jade Protocol, Fix #368 (#370)
LeavesMC/Leaves@fd9bd9b Update Paper
LeavesMC/Leaves@21c276f Fix jade protocol inv
LeavesMC/Leaves@93c5b78 [ci skip] Update issue template
LeavesMC/Leaves@6856a2b fix Stackable ShulkerBoxes (#356)
LeavesMC/Leaves@ec5a806 Fix fakeplayer resident (#375)
2024-11-28 16:16:54 -05:00
Dreeam
b158b02e63 [ci skip] Remove PandaSpigot from credits
Since the configurable knockback is WIP, or maybe directly removed in the future
2024-11-28 15:52:52 -05:00
Dreeam
13d9fd30a1 Bump dependencies 2024-11-28 15:51:53 -05:00
Dreeam
4e9546a971 Updated Upstream (Paper/Gale) 2024-11-28 03:56:25 -05:00
Dreeam
0927bfb1fb Updated spark 2024-11-21 12:06:51 -05:00
Dreeam
3b130e73c7 [ci skip] Update patch comment 2024-11-20 22:47:53 -05:00
Dreeam
bed181964e Fix armor stand equipment change visual issue
Should have special treatment to ArmorStand, since Paper introduced the configurable
ArmorStand no-tick, and still gives it ability to update equipment changes.
Thus added a bypass condition in LivingEntity#collectEquipmentChanges, able to update
ArmorStand equipment changes even if it is no tick.
2024-11-20 22:43:40 -05:00
Dreeam
97c3e50b84 [ci skip] Update patch comment for Use faster and thread-safe ban list date format parsing 2024-11-20 10:37:46 -05:00
Dreeam
487a9ff9b6 Drop Branchless clamp logic due to performance regression
The java internal implementation of Math#min / max is faster, due to the `@IntrinsicCandidate`, enables the JIT compiler to use native method for more efficient performance.

**Only for** reference: (Added asterisk marks to avoid people who can't see)

| Benchmark            | Mode  | Cnt | Score     | Error    | Units  |
|----------------------|-------|-----|-----------|----------|--------|
| clampInline   | thrpt | 5   | 37046.833 | ±454.413 | ops/ms |
| clampInternal | thrpt | 5   | 37355.122 | ±362.992 | ops/ms |
2024-11-20 10:20:04 -05:00
Kobe ⑧
3b827802bd Cleanup Lithium patches & Faster distanceTo & Optimize worldgen math (#166)
* dbqq

* Cleanup patch

* uwu

* import now back

* include info in patch header

* FMA for distanceTo

* Add detailed headers
2024-11-19 13:41:23 -05:00
Dreeam
27134f699a Added some optimizations (#164)
* uwu

* reorder

* Change author

* Sync upstream

* Lithium: equipment tracking

* Faster CraftServer#getworlds list creation

Co-Authored-By: Kobe ⑧ <102713261+HaHaWTH@users.noreply.github.com>
2024-11-14 06:50:59 -05:00
Kobe ⑧
fa9c4a78a7 Added region based comment (#165)
* Region based comment helper functions

* (Region based comment) Dont save entity

* (Region based comment) Pufferfish DAB

* (Region based comment) Cache EntityType

* (Region based comment) Cache EntityType

* (Region based comment) Pufferfish EntityTTL

* (Region based comment) Faster sequence

* (Region based comment) FastRNG

* (Region based comment) 0042

* (Region based comment) 0721

* (Region based comment) 0009

* (Region based comment) V1rtUal tHReaD

* (Region based comment) ZSSM

* [ci skip] (Region based comment) 0079

* [ci skip] (Region based comment) 0089 0090

* [ci skip] (Region based comment) 0049 0118 0138

* [ci skip] (Region based comment) 0006 0017 0018 0080 0081

* [ci skip] (Region based comment) 0019 0038 0059 0108 0117 0127

* ALL PATCHES ARE DONE

* [ci skip] NZDD
2024-11-14 06:40:57 -05:00
Dreeam
7eaacd480e [ci skip] Another cleanup 2024-11-12 11:56:24 -05:00
Dreeam
3842aa3d63 Drop Remove stream in PlacedFeature
Co-Authored-By: Kobe ⑧ <102713261+HaHaWTH@users.noreply.github.com>
2024-11-12 09:20:15 -05:00
Kobe ⑧
a3e3e983cf Remove stream in PlacedFeature (#163) 2024-11-11 19:17:08 -05:00
Dreeam
aa4cd01137 Fix hiding sentry dsn key in spark profiler 2024-11-11 07:31:48 -05:00
Dreeam
5c162fc7ed Some cleanup 2024-11-11 04:34:42 -05:00
Dreeam
126eb3b778 [ci skip] Forget to add 0 2024-11-11 03:10:01 -05:00
Dreeam
1f789577e2 Use faster and thread-safe ban list date format parsing 2024-11-11 03:04:13 -05:00
Dreeam
eb237c3aad [ci skip] Another cleanup 2024-11-10 23:45:58 -05:00
Dreeam
88579f1c2a Fix build 2024-11-10 17:43:41 -05:00
Dreeam
e9f5738e97 [ci skip] Reorder patches 2024-11-10 17:34:53 -05:00
Dreeam
5365c49680 Updated Upstream (Gale)
Upstream has released updates that appear to apply and compile correctly

Gale Changes:
Dreeam-qwq/Gale@1e0ebad Clean up
Dreeam-qwq/Gale@9ce20fa throw MissingPaletteEntryException for null entries in hash palette
Dreeam-qwq/Gale@751637d Final clean up imports
2024-11-10 17:20:40 -05:00
Kobe ⑧
75e6fdd01d Fix Secure Seed (#161)
Now it can be used without making a new save >_<
2024-11-10 16:02:56 -05:00
Kobe ⑧
7d1afa27ab Fix patches (#159)
* Fix patches

* Cleanup lithium patches
2024-11-10 13:04:58 -05:00
Kaan D.
972d46cde7 Replace world map with optimized collection (#158) 2024-11-10 09:32:36 -05:00
Kobe ⑧
848fb2dc4d Smart sorting & Remove streams & Throttle hopper (#157)
* =-=

* Reuse comparator

* Cleanup DAB patch
2024-11-10 09:25:58 -05:00
Kaan D.
cca144f3c7 Added some optimizations (#154)
* DivineMC - Lithium: Early checks for LivingEntity#updateSwingTime and updateFallFlying

* C2ME-Reduce-Allocations

* Lithium-fast-util

* Lithium-CompactSineLUT

* Compact-SineLUT

* some lithium patches

* Create 0141-Use-MCUtil.asyncExecutor-for-MAIN_WORKER_EXECUTOR.patch

* Fix tick function & Better inline world height

* improve the clamp logic by 1.2x

* Remove imports on IterateOutwardsCache

* Remove imports from 141

* Rename getCachedOrNewBits to CachedOrNewBitsGetter

* Remove thread instanceof checks

---------

Co-authored-by: kidofcubes <kidofcubes@gmail.com>
2024-11-09 12:51:27 -05:00
Dreeam
0e27d48042 Fix wrong entity behavior in fluid caused by inconsistent fluid count 2024-11-09 02:15:07 -05:00
Dreeam
055222d866 Updated Upstream (Gale)
Upstream has released updates that appear to apply and compile correctly

Gale Changes:
Dreeam-qwq/Gale@7ac2d0e Drop improve fluid direction caching
2024-11-09 02:10:33 -05:00
Kobe ⑧
2de96fc6eb Fix issues related to MythicMobs (#153 )
Fix issues related to MythicMobs
2024-11-08 02:06:03 +08:00
HaHaWTH
cff7d959f4 Fix 2024-11-08 02:01:24 +08:00
HaHaWTH
141016de21 Merge remote-tracking branch 'origin/ver/1.21.1' into ver/1.21.1 2024-11-08 01:50:43 +08:00