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

894 Commits

Author SHA1 Message Date
Taiyou
7209c94b98 decoupled api release 2025-03-06 12:23:16 +03:00
Taiyou06
db500330db Merge remote-tracking branch 'origin/ver/1.21.4' into ver/1.21.4 2025-03-06 10:06:44 +01:00
Taiyou06
bf437d81b1 temp: remove BFS on getSlopeDistance in fluids 2025-03-06 10:06:30 +01:00
Dreeam-qwq
6a4faf1cf8 Updated Upstream (Gale)
Upstream has released updates that appear to apply and compile correctly

Gale Changes:
Dreeam-qwq/Gale@d56fa60e Updated Upstream (Paper)
2025-03-06 01:39:45 +00:00
Taiyou
45b48136f1 switch to blacksmith cache and cleanup 2025-03-06 01:13:14 +03:00
Taiyou
49c1d72915 pretty please? 2025-03-06 00:52:41 +03:00
Taiyou
29be71ca51 whoops 2025-03-06 00:50:24 +03:00
Taiyou
cfb4f5aaaf fix the cache hopefully? 2025-03-06 00:48:11 +03:00
Taiyou06
1576517ac8 Merge remote-tracking branch 'origin/ver/1.21.4' into ver/1.21.4 2025-03-05 22:24:54 +01:00
Taiyou06
2d54fdea9b fixed a small concurrency issue on flushQueue(?) 2025-03-05 22:24:28 +01:00
Taiyou
be25e9f3ea bump gradle version
i'm letting it build so it caches it on the next run
2025-03-05 23:26:40 +03:00
Taiyou
bd16cbe7d8 add manual trigger 2025-03-05 23:07:24 +03: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
Taiyou
ce59731e6f Merge pull request #235 from Winds-Studio/networking
Connection.flushQueue optimization
2025-03-05 15:44:53 +01:00
Taiyou06
ae5cd82c12 add a toggle 2025-03-05 15:37:38 +01:00
Taiyou06
b46d837fa2 Merge remote-tracking branch 'refs/remotes/origin/ver/1.21.4' into networking 2025-03-05 14:15:58 +01:00
Dreeam
603e60dedf Build 2025-03-04 16:44:32 -05:00
Dreeam-qwq
2819d0a167 Updated Upstream (Gale)
Upstream has released updates that appear to apply and compile correctly

Gale Changes:
Dreeam-qwq/Gale@777c931c Updated Upstream (Paper)
2025-03-04 01:39:58 +00:00
Taiyou06
62d81685c1 Merge remote-tracking branch 'refs/remotes/origin/ver/1.21.4' into networking 2025-03-03 17:33:35 +01:00
Dreeam-qwq
bcc99c7b60 Updated Upstream (Gale)
Upstream has released updates that appear to apply and compile correctly

Gale Changes:
Dreeam-qwq/Gale@8de7331a Updated Upstream (Paper)
2025-03-01 01:39:49 +00:00
Creeam
2e5ea6957e Fix async entity tracker (#241)
* Fix Multithreaded Tracker

* [ci skip] Add comments
2025-02-27 15:11:28 -05:00
Kaan D.
68653110bc damn 🐴 2025-02-27 20:05:56 +03:00
Kaan D.
0dcab8751b i forgor 2025-02-27 19:57:13 +03:00
Kaan D.
fc64419d68 dont mind me, im just trying some gradle wizardry 2025-02-27 19:53:09 +03:00
Dreeam
239ce6d62b Update GitHub action env name to fix /version command output 2025-02-27 06:45:43 -05:00
Dreeam
ae05e90944 ShreddedPaper: Don't block main thread in Connection#syncAfterConfigurationChange 2025-02-27 06:25:34 -05:00
Dreeam
d801e88a2a Updated Upstream (Paper/Gale/Purpur)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@5e2a3bc0 Call EntityChangeBlockEvent with correct block when waxing (#12154)
PaperMC/Paper@ab984a07 Always pass event block to damage source (#12158)
PaperMC/Paper@7b4d44f5 Revert "Always pass event block to damage source (#12158)"
PaperMC/Paper@e5a8ee84 Hide soul speed particles for vanished players (#12152)
PaperMC/Paper@fcb2e815 Clear lastSection on game event listener removal
PaperMC/Paper@636ae0cd Add missing Paper comments to player movement patch
PaperMC/Paper@9be4e07a Pin snapshot dependencies (#12185)
PaperMC/Paper@f12d33f0 Track codec writing
PaperMC/Paper@1d9b3994 Add config option for failed beehive release cooldowns (#12186)
PaperMC/Paper@5f2ee83e Fix first execution of async delayed/repeating tasks being sync (#12166)
PaperMC/Paper@b00875f8 Add a method on Registry to get the size (#12182)
PaperMC/Paper@ca261090 Don't process empty rcon commands (#12188)
PaperMC/Paper@a501c459 Deprecate server config getters (#12189)
PaperMC/Paper@7f3d3591 Use MiniMessage#deserialize(String, Pointered) in sendRichMessage for send messages (#12177)
PaperMC/Paper@9b9f046f Remove broken code (#12171)
PaperMC/Paper@fc56c728 Add methods for Creaking (#12094)
PaperMC/Paper@f63dbeaf Fix cancelled HangingPlaceEvent inventory desync (#12161)
PaperMC/Paper@9421f223 Make CustomArgumentType use parse(reader,source) (#12191)
PaperMC/Paper@0a6e7435 Fix invulnerability damage and armour (#12190)

Gale Changes:
Dreeam-qwq/Gale@b2c11564 Updated Upstream (Paper)
Dreeam-qwq/Gale@a9e4baae Updated Upstream (Paper)
Dreeam-qwq/Gale@32a291bc [ci/skip] Update comment

Purpur Changes:
PurpurMC/Purpur@62cbd47a Updated Upstream (Paper)
PurpurMC/Purpur@d41aaca1 Updated Upstream (Paper)
PurpurMC/Purpur@3f8e6134 Fix EntityTameEvent not being called when `always-tame-in-creative` option is enabled (#1645)
PurpurMC/Purpur@b34d675f fix `zombie_horse.spawn-chance` option not working
2025-02-27 06:03:30 -05:00
Dreeam
e0f50c7c4c Fix GitHub env parse 2025-02-26 19:20:18 -05:00
Dreeam
e251f80820 Update ConfigurationMaster-API repo 2025-02-26 18:56:54 -05:00
Kaan D.
b7ef95ccb5 [ci skip] cleanup 2025-02-27 00:35:16 +03:00
Dreeam
d2417540ee Update workflow
* Separate build and pr build workflows
* Expose build number env var to Leaf
2025-02-26 16:30:33 -05:00
blacksmith-sh[bot]
02756941dc Migrate workflows to Blacksmith (#240)
Co-authored-by: blacksmith-sh[bot] <157653362+blacksmith-sh[bot]@users.noreply.github.com>
2025-02-26 15:50:08 -05:00
Dreeam
6185246a78 [ci skip] cleanup 2025-02-24 13:56:27 -05:00
Dreeam
be4bee9a10 Add back configurable tripwire dupe 2025-02-24 03:25:32 -05:00
Taiyou06
ab0e8da1dc swap to the guava's Interners.weakInterner() 2025-02-22 19:55:50 +01:00
Taiyou06
dc2f706b67 fix inventory updates 2025-02-22 19:08:36 +01:00
Dreeam
61754c8ffd [ci skip] cleanup 2025-02-22 04:49:13 -05:00
Dreeam
04500614b2 [ci skip] cleanup 2025-02-22 04:28:10 -05:00
Taiyou06
d5f3cba67c rebase 1.21.4 2025-02-22 10:17:03 +01:00
Taiyou06
5da371a215 Merge remote-tracking branch 'refs/remotes/origin/ver/1.21.4' into networking 2025-02-22 10:14:25 +01:00
Dreeam
77119bec4a Get correct class name 2025-02-22 04:07:36 -05:00
Dreeam
01fa6ac227 Add Leaf Commands (WIP)
* Added Leaf Commands base
* Added WIP /leaf reload
* Added /leaf version
* Change /gale permission to OP as default
2025-02-22 03:15:42 -05:00
Dreeam
69ece108dd Update config comment 2025-02-22 02:28:43 -05:00
Kaan D.
502385840d Bunch of side perf improvements (#217)
* Fix TE Lag

* Sepals Rearrange the attackable conditions

* Cache ItemStack max stack size

* fix build

* extra: Skip dirty stats copy when requesting player stats

* extra: Reset dirty flag when loading maps from the disk

* extra: Supporting block cache

* extra: Avoid useless deque clear on - credit: @MachineBreaker

* experimental/draft: Optimize SortedArraySet

* experimental/draft: Simplify SortedArraySet - sometime complex stuff doesnt mean faster.

* extra: Change maps/sets in brain + remove streams from villagers

* extra: Remove 'copyOf' from Baby Villager Sensor

* experimental: Rewrite trigger in SimpleCriterionTrigger

* [ci/skip] fix comments

* Faster setter for SimpleCriterionTrigger

* extra: Cache and optimize fluidOnEyes

* Sync changes

* [ci/skip] cleanup

* extra: QuadTree implementation for isChunkNearPlayer

* [ci/skip] cleanup

* [ci/skip] cleanup

* [ci/skip] clean up

* [ci/skip] cleanup

* Only player pushable

* Store chunkPos with keys

* [ci/skip] cleanup

* [ci/skip] cleanup

* cleanup

* rebuild patches

* cache some more stuff

* extra: optimize collectTickingChunks

* remove quadTree optimization for now (will open a new PR just for that)

* temp: Lazily optimize isChunkNearPlayer

* Inline filter & merge as a single loop

* [ci/skip] Add diff on change

* extra: optimize everything but the testing itself on getEntities

* [ci/skip] cleanup

* Optimize chunkUnloadQueue

* Remove iterators from inventory

* [ci/skip] Add TODOs

* i hate programming

* remove forEach

* extra: Alternative Brain Behaviour

* remove: opt getEntities + cache fluidOnEyes

* extra: Improve checkDespawn - credits: @kidofcubes

* extra: Improve pushEntity and getEntities

* yeet this

* VERY EXPERIMENTAL: getEntities Optimization

* fix bunch of issues from getEntities patch

* extra: slightly optimize getNearestPlayer - credits: @kidofcubes

* drop a patch for now (will open a new pr)

* move these to a new branch

* fix and optimize checkDespawn patches

* Rebuild Patches

* [ci/skip] Update benchmark

* [ci/skip] cleanup

* Drop

* [ci/skip] Drop

* Rebuild

* [ci/skip]

* Add configurable brain running behavior cache update interval

* Move to new pr

* [ci/skip] Update benchmark

---------

Co-authored-by: MachineBreaker <saltspigotpp@gmail.com>
Co-authored-by: kidofcubes <kidofcubes@gmail.com>
Co-authored-by: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com>
2025-02-22 02:23:53 -05:00
Dreeam-qwq
20aa0c932b Updated Upstream (Gale)
Upstream has released updates that appear to apply and compile correctly

Gale Changes:
Dreeam-qwq/Gale@5a29364a Updated Upstream (Paper)
Dreeam-qwq/Gale@0b5fbea3 Updated Upstream (Paper)
2025-02-22 01:38:54 +00:00
Taiyou06
79b64b314d just use netty event loop, lol lmao. 2025-02-21 16:14:36 +01:00
Dreeam
329bc97960 [ci skip] Update LeafConfig 2025-02-20 17:30:35 -05:00
Kaan D.
1e6bd865d6 Only broadcast carried item if changed (#234)
* perf: Logic optimizations to AbstractContainerMenu.broadcastChanges
2025-02-20 17:09:21 -05:00
Dreeam
5e3428c1a7 Add PlayerInventoryOverflowEvent (#232)
* Add PlayerInventoryOverflowEvent

* Add missing toggle

* Move to correct package

* Use handlerList to check instead of using explicit enable / isEnabled
2025-02-19 19:21:15 -05:00
Dreeam
86564bf6ce Updated Upstream (Paper/Gale/Purpur)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@fd69140d Fix `disable-tripwire-updates` option not cancelling tripwire hook updates (#12129)
PaperMC/Paper@3b9106c7 Readd dead redirect recovery (#12136)
PaperMC/Paper@d26a9e90 Fix plugin commands (#12144)
PaperMC/Paper@142695eb Default minecraft alias to redirect (#12146)
PaperMC/Paper@e494f289 Correctly call BlockFadeEvents (#12141)
PaperMC/Paper@b386a8f5 Add simpler JavaPlugin command registration (#12142)
PaperMC/Paper@f0700818 Remove Experimental from TypedKey (#12134)
PaperMC/Paper@09f1f88f Fix getForwards/SidewaysMovement for players (#12140)
PaperMC/Paper@edda0db1 Fix server crash when no enchantments are present (#12149)

Gale Changes:
Dreeam-qwq/Gale@55793e9d Updated Upstream (Paper)
Dreeam-qwq/Gale@8372ff60 Updated Upstream (Paper)

Purpur Changes:
PurpurMC/Purpur@b0d36cae Updated Upstream (Paper)
PurpurMC/Purpur@97dcff40 set DamageCause to `SUICIDE` for scissor's DamageSource
PurpurMC/Purpur@a9862d7e Updated Upstream (Paper)
PurpurMC/Purpur@196c1768 Updated Upstream (Paper)
2025-02-19 15:28:34 -05:00