From 1ea7c5fe56731e95a4afb68ac6b2e8b939d59359 Mon Sep 17 00:00:00 2001 From: hayanesuru Date: Sat, 9 Aug 2025 03:35:58 +0900 Subject: [PATCH] Drop "Cache random tick block status" (#450) * drop Cache random tick block status * rebuild patches * [ci/skip] Update patch comment --- .../0185-Cache-random-tick-block-status.patch | 1 + ...h => 0185-Cache-part-of-canHoldFluid-result.patch} | 0 ...pe.patch => 0186-Configurable-tripwire-dupe.patch} | 0 ...Fix-MC-117075-Block-Entities-Unload-Lag-Spi.patch} | 0 ...-Sepals-Rearrange-the-attackable-conditions.patch} | 0 ...per-Skip-dirty-stats-copy-when-requesting-p.patch} | 0 ...per-Reset-dirty-flag-when-loading-maps-from.patch} | 0 ...timize-checking-nearby-players-for-spawning.patch} | 0 ....patch => 0192-Cache-supporting-block-check.patch} | 0 ...less-deque-clear-on-LevelTicks-cleanupAfter.patch} | 0 ...rs.patch => 0194-Remove-stream-in-villagers.patch} | 0 ...patch => 0195-Optimize-baby-villager-sensor.patch} | 0 ...pushable.patch => 0196-Only-player-pushable.patch} | 0 ...tch => 0197-Remove-iterators-from-Inventory.patch} | 0 ...-despawn.patch => 0198-optimize-mob-despawn.patch} | 0 ... => 0199-Slightly-optimise-getNearestPlayer.patch} | 0 ...ites-to-writeLongArray-during-chunk-loading.patch} | 0 ...h => 0201-Improve-sorting-in-SortedArraySet.patch} | 0 ...patch => 0202-Make-removeIf-slightly-faster.patch} | 0 ...alette.patch => 0203-Optimize-LinearPalette.patch} | 0 ...tch => 0204-Slightly-optimized-VarInt-write.patch} | 0 ...05-Rewrite-ClientboundLightUpdatePacketData.patch} | 0 ...k-sending.patch => 0206-Async-chunk-sending.patch} | 4 ++-- ...ations.patch => 0207-Spawner-Configurations.patch} | 0 ...=> 0208-SparklyPaper-Parallel-world-ticking.patch} | 0 ... => 0209-SparklyPaper-Track-each-world-MSPT.patch} | 0 ...Fix-cancelled-Projectile-Events-still-consu.patch} | 0 ...SetLookAndInteract-and-NearestVisibleLiving.patch} | 0 ...lk.patch => 0212-rewrite-InsideBrownianWalk.patch} | 0 ...e.patch => 0213-Use-BFS-on-getSlopeDistance.patch} | 0 ...214-Paper-PR-Throttle-failed-spawn-attempts.patch} | 0 ...Improve-BlockEntity-ticking-isRemoved-check.patch} | 0 ...h => 0216-Raytrace-AntiXray-SDK-integration.patch} | 0 ... 0217-Optimize-addOrUpdateTransientModifier.patch} | 0 ...te.patch => 0218-Optimize-ContextMap.create.patch} | 0 ...=> 0219-Micro-optimizations-for-random-tick.patch} | 0 ...treams-on-updateConnectedPlayersWithinRange.patch} | 0 ...ch => 0221-Remove-streams-on-PlayerDetector.patch} | 0 ...> 0222-Use-direct-iteration-on-Sensing.tick.patch} | 0 ...h => 0223-Optimise-non-flush-packet-sending.patch} | 0 ...ouble-chunk-retrieving-in-entity-fluid-push.patch} | 0 ... => 0225-Null-handling-on-MultifaceSpreader.patch} | 0 ...-threads.patch => 0226-More-virtual-threads.patch} | 0 ...-finding.patch => 0227-Async-target-finding.patch} | 0 ...0228-Optimize-ThreadedTicketLevelPropagator.patch} | 0 ...mise-MobEffectUtil-getDigSpeedAmplification.patch} | 0 ...Unloads.patch => 0230-Optimise-chunkUnloads.patch} | 11 +++++------ ...ch => 0231-Optimize-BlockEntityType-isValid.patch} | 0 ...Add-ticket-on-player-join-to-avoid-chunk-lo.patch} | 0 ...py-EntityList-implementation-to-BasicEntity.patch} | 0 ...5-Protocol-Core.patch => 0234-Protocol-Core.patch} | 2 +- ...patch => 0235-Async-switch-connection-state.patch} | 0 ... 0236-Optimize-BlockEntities-tickersInLevel.patch} | 0 ...ck-if-the-cactus-can-even-survive-being-pla.patch} | 0 ...atch => 0238-Flush-location-while-knockback.patch} | 0 ...-hand.patch => 0239-Only-tick-items-at-hand.patch} | 0 ... 0240-Smart-sort-items-in-NearestItemSensor.patch} | 0 ...tch => 0241-Optimise-player-movement-checks.patch} | 0 ...r.patch => 0242-Remove-streams-in-MobSensor.patch} | 0 ...ch => 0243-Remove-streams-in-TemptingSensor.patch} | 0 ...atch => 0244-Use-HashedList-on-WeightedList.patch} | 0 ...igurable-death-item-drop-knockback-settings.patch} | 0 ... => 0246-Optimize-getScaledTrackingDistance.patch} | 0 ...> 0247-Optimize-SynchedEntityData-packDirty.patch} | 0 ...InFluid.patch => 0248-Optimize-isEyeInFluid.patch} | 0 ...th-type.patch => 0249-Cache-block-path-type.patch} | 0 ...atus.patch => 0250-optimize-getEntityStatus.patch} | 0 ...timization-optimized-PoweredRailBlock-logic.patch} | 0 ...h => 0252-optimise-ChunkGenerator-getMobsAt.patch} | 0 ...cache-getBiome.patch => 0253-cache-getBiome.patch} | 0 ...pawning.patch => 0254-optimize-mob-spawning.patch} | 0 ...re-map.patch => 0255-optimize-structure-map.patch} | 0 ...pawning.patch => 0256-throttle-mob-spawning.patch} | 0 ...nt.patch => 0257-Add-BlockExplosionHitEvent.patch} | 0 ...58-Old-Blast-Protection-explosion-knockback.patch} | 0 ....patch => 0259-Use-UUID-for-cure-reputation.patch} | 0 ...rash-during-parsing-unknown-command-message.patch} | 0 ...dom-tick.patch => 0261-optimize-random-tick.patch} | 0 ...ot-log-invalid-flatten-text-component-parse.patch} | 0 ... => 0263-Fast-BiomeManager-seed-obfuscation.patch} | 0 ...ntitySelectorOptions-map-with-optimized-col.patch} | 0 ...-time.patch => 0265-optimize-no-action-time.patch} | 0 ...ze-waypoint.patch => 0266-optimize-waypoint.patch} | 0 ...optimization.patch => 0267-Paw-optimization.patch} | 0 ...per-config-fixClimbingBypassingCrammingRule.patch} | 0 ...ch => 0269-Skip-inactive-entity-for-execute.patch} | 0 ...Entities.patch => 0270-Optimise-getEntities.patch} | 0 ...2-fix-MC-298464.patch => 0271-fix-MC-298464.patch} | 0 ...SetClosestHomeAsWalkTarget-s-poi-finding-to.patch} | 0 ...ch => 0273-optimize-checkInsideBlocks-calls.patch} | 0 .../{0275-Op-lock.patch => 0274-Op-lock.patch} | 0 ...onNullList.patch => 0275-Custom-NonNullList.patch} | 0 ...-TextColor.patch => 0276-Optimise-TextColor.patch} | 0 ...-not-create-fire-if-explosion-was-cancelled.patch} | 0 ...0278-Skip-BlockPhysicsEvent-if-no-listeners.patch} | 0 ...ng.patch => 0279-Lithium-equipment-tracking.patch} | 2 +- 96 files changed, 10 insertions(+), 10 deletions(-) rename {leaf-server/minecraft-patches/features => leaf-archived-patches/removed/1.21.8/mcserver}/0185-Cache-random-tick-block-status.patch (97%) rename leaf-server/minecraft-patches/features/{0186-Cache-part-of-canHoldFluid-result.patch => 0185-Cache-part-of-canHoldFluid-result.patch} (100%) rename leaf-server/minecraft-patches/features/{0187-Configurable-tripwire-dupe.patch => 0186-Configurable-tripwire-dupe.patch} (100%) rename leaf-server/minecraft-patches/features/{0188-Paper-PR-Fix-MC-117075-Block-Entities-Unload-Lag-Spi.patch => 0187-Paper-PR-Fix-MC-117075-Block-Entities-Unload-Lag-Spi.patch} (100%) rename leaf-server/minecraft-patches/features/{0189-Sepals-Rearrange-the-attackable-conditions.patch => 0188-Sepals-Rearrange-the-attackable-conditions.patch} (100%) rename leaf-server/minecraft-patches/features/{0190-SparklyPaper-Skip-dirty-stats-copy-when-requesting-p.patch => 0189-SparklyPaper-Skip-dirty-stats-copy-when-requesting-p.patch} (100%) rename leaf-server/minecraft-patches/features/{0191-SparklyPaper-Reset-dirty-flag-when-loading-maps-from.patch => 0190-SparklyPaper-Reset-dirty-flag-when-loading-maps-from.patch} (100%) rename leaf-server/minecraft-patches/features/{0192-Optimize-checking-nearby-players-for-spawning.patch => 0191-Optimize-checking-nearby-players-for-spawning.patch} (100%) rename leaf-server/minecraft-patches/features/{0193-Cache-supporting-block-check.patch => 0192-Cache-supporting-block-check.patch} (100%) rename leaf-server/minecraft-patches/features/{0194-Avoid-useless-deque-clear-on-LevelTicks-cleanupAfter.patch => 0193-Avoid-useless-deque-clear-on-LevelTicks-cleanupAfter.patch} (100%) rename leaf-server/minecraft-patches/features/{0195-Remove-stream-in-villagers.patch => 0194-Remove-stream-in-villagers.patch} (100%) rename leaf-server/minecraft-patches/features/{0196-Optimize-baby-villager-sensor.patch => 0195-Optimize-baby-villager-sensor.patch} (100%) rename leaf-server/minecraft-patches/features/{0197-Only-player-pushable.patch => 0196-Only-player-pushable.patch} (100%) rename leaf-server/minecraft-patches/features/{0198-Remove-iterators-from-Inventory.patch => 0197-Remove-iterators-from-Inventory.patch} (100%) rename leaf-server/minecraft-patches/features/{0199-optimize-mob-despawn.patch => 0198-optimize-mob-despawn.patch} (100%) rename leaf-server/minecraft-patches/features/{0200-Slightly-optimise-getNearestPlayer.patch => 0199-Slightly-optimise-getNearestPlayer.patch} (100%) rename leaf-server/minecraft-patches/features/{0201-Bulk-writes-to-writeLongArray-during-chunk-loading.patch => 0200-Bulk-writes-to-writeLongArray-during-chunk-loading.patch} (100%) rename leaf-server/minecraft-patches/features/{0202-Improve-sorting-in-SortedArraySet.patch => 0201-Improve-sorting-in-SortedArraySet.patch} (100%) rename leaf-server/minecraft-patches/features/{0203-Make-removeIf-slightly-faster.patch => 0202-Make-removeIf-slightly-faster.patch} (100%) rename leaf-server/minecraft-patches/features/{0204-Optimize-LinearPalette.patch => 0203-Optimize-LinearPalette.patch} (100%) rename leaf-server/minecraft-patches/features/{0205-Slightly-optimized-VarInt-write.patch => 0204-Slightly-optimized-VarInt-write.patch} (100%) rename leaf-server/minecraft-patches/features/{0206-Rewrite-ClientboundLightUpdatePacketData.patch => 0205-Rewrite-ClientboundLightUpdatePacketData.patch} (100%) rename leaf-server/minecraft-patches/features/{0207-Async-chunk-sending.patch => 0206-Async-chunk-sending.patch} (98%) rename leaf-server/minecraft-patches/features/{0208-Spawner-Configurations.patch => 0207-Spawner-Configurations.patch} (100%) rename leaf-server/minecraft-patches/features/{0209-SparklyPaper-Parallel-world-ticking.patch => 0208-SparklyPaper-Parallel-world-ticking.patch} (100%) rename leaf-server/minecraft-patches/features/{0210-SparklyPaper-Track-each-world-MSPT.patch => 0209-SparklyPaper-Track-each-world-MSPT.patch} (100%) rename leaf-server/minecraft-patches/features/{0211-Paper-PR-Fix-cancelled-Projectile-Events-still-consu.patch => 0210-Paper-PR-Fix-cancelled-Projectile-Events-still-consu.patch} (100%) rename leaf-server/minecraft-patches/features/{0212-Optimize-SetLookAndInteract-and-NearestVisibleLiving.patch => 0211-Optimize-SetLookAndInteract-and-NearestVisibleLiving.patch} (100%) rename leaf-server/minecraft-patches/features/{0213-rewrite-InsideBrownianWalk.patch => 0212-rewrite-InsideBrownianWalk.patch} (100%) rename leaf-server/minecraft-patches/features/{0214-Use-BFS-on-getSlopeDistance.patch => 0213-Use-BFS-on-getSlopeDistance.patch} (100%) rename leaf-server/minecraft-patches/features/{0215-Paper-PR-Throttle-failed-spawn-attempts.patch => 0214-Paper-PR-Throttle-failed-spawn-attempts.patch} (100%) rename leaf-server/minecraft-patches/features/{0216-Improve-BlockEntity-ticking-isRemoved-check.patch => 0215-Improve-BlockEntity-ticking-isRemoved-check.patch} (100%) rename leaf-server/minecraft-patches/features/{0217-Raytrace-AntiXray-SDK-integration.patch => 0216-Raytrace-AntiXray-SDK-integration.patch} (100%) rename leaf-server/minecraft-patches/features/{0218-Optimize-addOrUpdateTransientModifier.patch => 0217-Optimize-addOrUpdateTransientModifier.patch} (100%) rename leaf-server/minecraft-patches/features/{0219-Optimize-ContextMap.create.patch => 0218-Optimize-ContextMap.create.patch} (100%) rename leaf-server/minecraft-patches/features/{0220-Micro-optimizations-for-random-tick.patch => 0219-Micro-optimizations-for-random-tick.patch} (100%) rename leaf-server/minecraft-patches/features/{0221-Remove-streams-on-updateConnectedPlayersWithinRange.patch => 0220-Remove-streams-on-updateConnectedPlayersWithinRange.patch} (100%) rename leaf-server/minecraft-patches/features/{0222-Remove-streams-on-PlayerDetector.patch => 0221-Remove-streams-on-PlayerDetector.patch} (100%) rename leaf-server/minecraft-patches/features/{0223-Use-direct-iteration-on-Sensing.tick.patch => 0222-Use-direct-iteration-on-Sensing.tick.patch} (100%) rename leaf-server/minecraft-patches/features/{0224-Optimise-non-flush-packet-sending.patch => 0223-Optimise-non-flush-packet-sending.patch} (100%) rename leaf-server/minecraft-patches/features/{0225-Prevent-double-chunk-retrieving-in-entity-fluid-push.patch => 0224-Prevent-double-chunk-retrieving-in-entity-fluid-push.patch} (100%) rename leaf-server/minecraft-patches/features/{0226-Null-handling-on-MultifaceSpreader.patch => 0225-Null-handling-on-MultifaceSpreader.patch} (100%) rename leaf-server/minecraft-patches/features/{0227-More-virtual-threads.patch => 0226-More-virtual-threads.patch} (100%) rename leaf-server/minecraft-patches/features/{0228-Async-target-finding.patch => 0227-Async-target-finding.patch} (100%) rename leaf-server/minecraft-patches/features/{0229-Optimize-ThreadedTicketLevelPropagator.patch => 0228-Optimize-ThreadedTicketLevelPropagator.patch} (100%) rename leaf-server/minecraft-patches/features/{0230-Optimise-MobEffectUtil-getDigSpeedAmplification.patch => 0229-Optimise-MobEffectUtil-getDigSpeedAmplification.patch} (100%) rename leaf-server/minecraft-patches/features/{0231-Optimise-chunkUnloads.patch => 0230-Optimise-chunkUnloads.patch} (97%) rename leaf-server/minecraft-patches/features/{0232-Optimize-BlockEntityType-isValid.patch => 0231-Optimize-BlockEntityType-isValid.patch} (100%) rename leaf-server/minecraft-patches/features/{0233-Paper-PR-Add-ticket-on-player-join-to-avoid-chunk-lo.patch => 0232-Paper-PR-Add-ticket-on-player-join-to-avoid-chunk-lo.patch} (100%) rename leaf-server/minecraft-patches/features/{0234-Sakura-copy-EntityList-implementation-to-BasicEntity.patch => 0233-Sakura-copy-EntityList-implementation-to-BasicEntity.patch} (100%) rename leaf-server/minecraft-patches/features/{0235-Protocol-Core.patch => 0234-Protocol-Core.patch} (97%) rename leaf-server/minecraft-patches/features/{0236-Async-switch-connection-state.patch => 0235-Async-switch-connection-state.patch} (100%) rename leaf-server/minecraft-patches/features/{0237-Optimize-BlockEntities-tickersInLevel.patch => 0236-Optimize-BlockEntities-tickersInLevel.patch} (100%) rename leaf-server/minecraft-patches/features/{0238-Pluto-Check-if-the-cactus-can-even-survive-being-pla.patch => 0237-Pluto-Check-if-the-cactus-can-even-survive-being-pla.patch} (100%) rename leaf-server/minecraft-patches/features/{0239-Flush-location-while-knockback.patch => 0238-Flush-location-while-knockback.patch} (100%) rename leaf-server/minecraft-patches/features/{0240-Only-tick-items-at-hand.patch => 0239-Only-tick-items-at-hand.patch} (100%) rename leaf-server/minecraft-patches/features/{0241-Smart-sort-items-in-NearestItemSensor.patch => 0240-Smart-sort-items-in-NearestItemSensor.patch} (100%) rename leaf-server/minecraft-patches/features/{0242-Optimise-player-movement-checks.patch => 0241-Optimise-player-movement-checks.patch} (100%) rename leaf-server/minecraft-patches/features/{0243-Remove-streams-in-MobSensor.patch => 0242-Remove-streams-in-MobSensor.patch} (100%) rename leaf-server/minecraft-patches/features/{0244-Remove-streams-in-TemptingSensor.patch => 0243-Remove-streams-in-TemptingSensor.patch} (100%) rename leaf-server/minecraft-patches/features/{0245-Use-HashedList-on-WeightedList.patch => 0244-Use-HashedList-on-WeightedList.patch} (100%) rename leaf-server/minecraft-patches/features/{0246-Add-configurable-death-item-drop-knockback-settings.patch => 0245-Add-configurable-death-item-drop-knockback-settings.patch} (100%) rename leaf-server/minecraft-patches/features/{0247-Optimize-getScaledTrackingDistance.patch => 0246-Optimize-getScaledTrackingDistance.patch} (100%) rename leaf-server/minecraft-patches/features/{0248-Optimize-SynchedEntityData-packDirty.patch => 0247-Optimize-SynchedEntityData-packDirty.patch} (100%) rename leaf-server/minecraft-patches/features/{0249-Optimize-isEyeInFluid.patch => 0248-Optimize-isEyeInFluid.patch} (100%) rename leaf-server/minecraft-patches/features/{0250-Cache-block-path-type.patch => 0249-Cache-block-path-type.patch} (100%) rename leaf-server/minecraft-patches/features/{0251-optimize-getEntityStatus.patch => 0250-optimize-getEntityStatus.patch} (100%) rename leaf-server/minecraft-patches/features/{0252-Rail-Optimization-optimized-PoweredRailBlock-logic.patch => 0251-Rail-Optimization-optimized-PoweredRailBlock-logic.patch} (100%) rename leaf-server/minecraft-patches/features/{0253-optimise-ChunkGenerator-getMobsAt.patch => 0252-optimise-ChunkGenerator-getMobsAt.patch} (100%) rename leaf-server/minecraft-patches/features/{0254-cache-getBiome.patch => 0253-cache-getBiome.patch} (100%) rename leaf-server/minecraft-patches/features/{0255-optimize-mob-spawning.patch => 0254-optimize-mob-spawning.patch} (100%) rename leaf-server/minecraft-patches/features/{0256-optimize-structure-map.patch => 0255-optimize-structure-map.patch} (100%) rename leaf-server/minecraft-patches/features/{0257-throttle-mob-spawning.patch => 0256-throttle-mob-spawning.patch} (100%) rename leaf-server/minecraft-patches/features/{0258-Add-BlockExplosionHitEvent.patch => 0257-Add-BlockExplosionHitEvent.patch} (100%) rename leaf-server/minecraft-patches/features/{0259-Old-Blast-Protection-explosion-knockback.patch => 0258-Old-Blast-Protection-explosion-knockback.patch} (100%) rename leaf-server/minecraft-patches/features/{0260-Use-UUID-for-cure-reputation.patch => 0259-Use-UUID-for-cure-reputation.patch} (100%) rename leaf-server/minecraft-patches/features/{0261-Fix-crash-during-parsing-unknown-command-message.patch => 0260-Fix-crash-during-parsing-unknown-command-message.patch} (100%) rename leaf-server/minecraft-patches/features/{0262-optimize-random-tick.patch => 0261-optimize-random-tick.patch} (100%) rename leaf-server/minecraft-patches/features/{0263-do-not-log-invalid-flatten-text-component-parse.patch => 0262-do-not-log-invalid-flatten-text-component-parse.patch} (100%) rename leaf-server/minecraft-patches/features/{0264-Fast-BiomeManager-seed-obfuscation.patch => 0263-Fast-BiomeManager-seed-obfuscation.patch} (100%) rename leaf-server/minecraft-patches/features/{0265-Replace-EntitySelectorOptions-map-with-optimized-col.patch => 0264-Replace-EntitySelectorOptions-map-with-optimized-col.patch} (100%) rename leaf-server/minecraft-patches/features/{0266-optimize-no-action-time.patch => 0265-optimize-no-action-time.patch} (100%) rename leaf-server/minecraft-patches/features/{0267-optimize-waypoint.patch => 0266-optimize-waypoint.patch} (100%) rename leaf-server/minecraft-patches/features/{0268-Paw-optimization.patch => 0267-Paw-optimization.patch} (100%) rename leaf-server/minecraft-patches/features/{0269-Fix-Paper-config-fixClimbingBypassingCrammingRule.patch => 0268-Fix-Paper-config-fixClimbingBypassingCrammingRule.patch} (100%) rename leaf-server/minecraft-patches/features/{0270-Skip-inactive-entity-for-execute.patch => 0269-Skip-inactive-entity-for-execute.patch} (100%) rename leaf-server/minecraft-patches/features/{0271-Optimise-getEntities.patch => 0270-Optimise-getEntities.patch} (100%) rename leaf-server/minecraft-patches/features/{0272-fix-MC-298464.patch => 0271-fix-MC-298464.patch} (100%) rename leaf-server/minecraft-patches/features/{0273-Re-route-SetClosestHomeAsWalkTarget-s-poi-finding-to.patch => 0272-Re-route-SetClosestHomeAsWalkTarget-s-poi-finding-to.patch} (100%) rename leaf-server/minecraft-patches/features/{0274-optimize-checkInsideBlocks-calls.patch => 0273-optimize-checkInsideBlocks-calls.patch} (100%) rename leaf-server/minecraft-patches/features/{0275-Op-lock.patch => 0274-Op-lock.patch} (100%) rename leaf-server/minecraft-patches/features/{0276-Custom-NonNullList.patch => 0275-Custom-NonNullList.patch} (100%) rename leaf-server/minecraft-patches/features/{0277-Optimise-TextColor.patch => 0276-Optimise-TextColor.patch} (100%) rename leaf-server/minecraft-patches/features/{0278-Do-not-create-fire-if-explosion-was-cancelled.patch => 0277-Do-not-create-fire-if-explosion-was-cancelled.patch} (100%) rename leaf-server/minecraft-patches/features/{0279-Skip-BlockPhysicsEvent-if-no-listeners.patch => 0278-Skip-BlockPhysicsEvent-if-no-listeners.patch} (100%) rename leaf-server/minecraft-patches/features/{0280-Lithium-equipment-tracking.patch => 0279-Lithium-equipment-tracking.patch} (99%) diff --git a/leaf-server/minecraft-patches/features/0185-Cache-random-tick-block-status.patch b/leaf-archived-patches/removed/1.21.8/mcserver/0185-Cache-random-tick-block-status.patch similarity index 97% rename from leaf-server/minecraft-patches/features/0185-Cache-random-tick-block-status.patch rename to leaf-archived-patches/removed/1.21.8/mcserver/0185-Cache-random-tick-block-status.patch index 1cdab487..11b3f20c 100644 --- a/leaf-server/minecraft-patches/features/0185-Cache-random-tick-block-status.patch +++ b/leaf-archived-patches/removed/1.21.8/mcserver/0185-Cache-random-tick-block-status.patch @@ -3,6 +3,7 @@ From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com> Date: Sat, 23 Nov 2024 09:04:46 -0500 Subject: [PATCH] Cache random tick block status +Removed since Leaf 1.21.8, useless. Leaf already has random tick optimization diff --git a/net/minecraft/world/level/chunk/LevelChunkSection.java b/net/minecraft/world/level/chunk/LevelChunkSection.java index df717c545472006b99532280c38c1fbef12bcf82..36c033b0ee63dfc273d721fb4b614733e8fdef19 100644 diff --git a/leaf-server/minecraft-patches/features/0186-Cache-part-of-canHoldFluid-result.patch b/leaf-server/minecraft-patches/features/0185-Cache-part-of-canHoldFluid-result.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0186-Cache-part-of-canHoldFluid-result.patch rename to leaf-server/minecraft-patches/features/0185-Cache-part-of-canHoldFluid-result.patch diff --git a/leaf-server/minecraft-patches/features/0187-Configurable-tripwire-dupe.patch b/leaf-server/minecraft-patches/features/0186-Configurable-tripwire-dupe.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0187-Configurable-tripwire-dupe.patch rename to leaf-server/minecraft-patches/features/0186-Configurable-tripwire-dupe.patch diff --git a/leaf-server/minecraft-patches/features/0188-Paper-PR-Fix-MC-117075-Block-Entities-Unload-Lag-Spi.patch b/leaf-server/minecraft-patches/features/0187-Paper-PR-Fix-MC-117075-Block-Entities-Unload-Lag-Spi.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0188-Paper-PR-Fix-MC-117075-Block-Entities-Unload-Lag-Spi.patch rename to leaf-server/minecraft-patches/features/0187-Paper-PR-Fix-MC-117075-Block-Entities-Unload-Lag-Spi.patch diff --git a/leaf-server/minecraft-patches/features/0189-Sepals-Rearrange-the-attackable-conditions.patch b/leaf-server/minecraft-patches/features/0188-Sepals-Rearrange-the-attackable-conditions.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0189-Sepals-Rearrange-the-attackable-conditions.patch rename to leaf-server/minecraft-patches/features/0188-Sepals-Rearrange-the-attackable-conditions.patch diff --git a/leaf-server/minecraft-patches/features/0190-SparklyPaper-Skip-dirty-stats-copy-when-requesting-p.patch b/leaf-server/minecraft-patches/features/0189-SparklyPaper-Skip-dirty-stats-copy-when-requesting-p.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0190-SparklyPaper-Skip-dirty-stats-copy-when-requesting-p.patch rename to leaf-server/minecraft-patches/features/0189-SparklyPaper-Skip-dirty-stats-copy-when-requesting-p.patch diff --git a/leaf-server/minecraft-patches/features/0191-SparklyPaper-Reset-dirty-flag-when-loading-maps-from.patch b/leaf-server/minecraft-patches/features/0190-SparklyPaper-Reset-dirty-flag-when-loading-maps-from.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0191-SparklyPaper-Reset-dirty-flag-when-loading-maps-from.patch rename to leaf-server/minecraft-patches/features/0190-SparklyPaper-Reset-dirty-flag-when-loading-maps-from.patch diff --git a/leaf-server/minecraft-patches/features/0192-Optimize-checking-nearby-players-for-spawning.patch b/leaf-server/minecraft-patches/features/0191-Optimize-checking-nearby-players-for-spawning.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0192-Optimize-checking-nearby-players-for-spawning.patch rename to leaf-server/minecraft-patches/features/0191-Optimize-checking-nearby-players-for-spawning.patch diff --git a/leaf-server/minecraft-patches/features/0193-Cache-supporting-block-check.patch b/leaf-server/minecraft-patches/features/0192-Cache-supporting-block-check.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0193-Cache-supporting-block-check.patch rename to leaf-server/minecraft-patches/features/0192-Cache-supporting-block-check.patch diff --git a/leaf-server/minecraft-patches/features/0194-Avoid-useless-deque-clear-on-LevelTicks-cleanupAfter.patch b/leaf-server/minecraft-patches/features/0193-Avoid-useless-deque-clear-on-LevelTicks-cleanupAfter.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0194-Avoid-useless-deque-clear-on-LevelTicks-cleanupAfter.patch rename to leaf-server/minecraft-patches/features/0193-Avoid-useless-deque-clear-on-LevelTicks-cleanupAfter.patch diff --git a/leaf-server/minecraft-patches/features/0195-Remove-stream-in-villagers.patch b/leaf-server/minecraft-patches/features/0194-Remove-stream-in-villagers.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0195-Remove-stream-in-villagers.patch rename to leaf-server/minecraft-patches/features/0194-Remove-stream-in-villagers.patch diff --git a/leaf-server/minecraft-patches/features/0196-Optimize-baby-villager-sensor.patch b/leaf-server/minecraft-patches/features/0195-Optimize-baby-villager-sensor.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0196-Optimize-baby-villager-sensor.patch rename to leaf-server/minecraft-patches/features/0195-Optimize-baby-villager-sensor.patch diff --git a/leaf-server/minecraft-patches/features/0197-Only-player-pushable.patch b/leaf-server/minecraft-patches/features/0196-Only-player-pushable.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0197-Only-player-pushable.patch rename to leaf-server/minecraft-patches/features/0196-Only-player-pushable.patch diff --git a/leaf-server/minecraft-patches/features/0198-Remove-iterators-from-Inventory.patch b/leaf-server/minecraft-patches/features/0197-Remove-iterators-from-Inventory.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0198-Remove-iterators-from-Inventory.patch rename to leaf-server/minecraft-patches/features/0197-Remove-iterators-from-Inventory.patch diff --git a/leaf-server/minecraft-patches/features/0199-optimize-mob-despawn.patch b/leaf-server/minecraft-patches/features/0198-optimize-mob-despawn.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0199-optimize-mob-despawn.patch rename to leaf-server/minecraft-patches/features/0198-optimize-mob-despawn.patch diff --git a/leaf-server/minecraft-patches/features/0200-Slightly-optimise-getNearestPlayer.patch b/leaf-server/minecraft-patches/features/0199-Slightly-optimise-getNearestPlayer.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0200-Slightly-optimise-getNearestPlayer.patch rename to leaf-server/minecraft-patches/features/0199-Slightly-optimise-getNearestPlayer.patch diff --git a/leaf-server/minecraft-patches/features/0201-Bulk-writes-to-writeLongArray-during-chunk-loading.patch b/leaf-server/minecraft-patches/features/0200-Bulk-writes-to-writeLongArray-during-chunk-loading.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0201-Bulk-writes-to-writeLongArray-during-chunk-loading.patch rename to leaf-server/minecraft-patches/features/0200-Bulk-writes-to-writeLongArray-during-chunk-loading.patch diff --git a/leaf-server/minecraft-patches/features/0202-Improve-sorting-in-SortedArraySet.patch b/leaf-server/minecraft-patches/features/0201-Improve-sorting-in-SortedArraySet.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0202-Improve-sorting-in-SortedArraySet.patch rename to leaf-server/minecraft-patches/features/0201-Improve-sorting-in-SortedArraySet.patch diff --git a/leaf-server/minecraft-patches/features/0203-Make-removeIf-slightly-faster.patch b/leaf-server/minecraft-patches/features/0202-Make-removeIf-slightly-faster.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0203-Make-removeIf-slightly-faster.patch rename to leaf-server/minecraft-patches/features/0202-Make-removeIf-slightly-faster.patch diff --git a/leaf-server/minecraft-patches/features/0204-Optimize-LinearPalette.patch b/leaf-server/minecraft-patches/features/0203-Optimize-LinearPalette.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0204-Optimize-LinearPalette.patch rename to leaf-server/minecraft-patches/features/0203-Optimize-LinearPalette.patch diff --git a/leaf-server/minecraft-patches/features/0205-Slightly-optimized-VarInt-write.patch b/leaf-server/minecraft-patches/features/0204-Slightly-optimized-VarInt-write.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0205-Slightly-optimized-VarInt-write.patch rename to leaf-server/minecraft-patches/features/0204-Slightly-optimized-VarInt-write.patch diff --git a/leaf-server/minecraft-patches/features/0206-Rewrite-ClientboundLightUpdatePacketData.patch b/leaf-server/minecraft-patches/features/0205-Rewrite-ClientboundLightUpdatePacketData.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0206-Rewrite-ClientboundLightUpdatePacketData.patch rename to leaf-server/minecraft-patches/features/0205-Rewrite-ClientboundLightUpdatePacketData.patch diff --git a/leaf-server/minecraft-patches/features/0207-Async-chunk-sending.patch b/leaf-server/minecraft-patches/features/0206-Async-chunk-sending.patch similarity index 98% rename from leaf-server/minecraft-patches/features/0207-Async-chunk-sending.patch rename to leaf-server/minecraft-patches/features/0206-Async-chunk-sending.patch index 17f0f248..e6f4ae6c 100644 --- a/leaf-server/minecraft-patches/features/0207-Async-chunk-sending.patch +++ b/leaf-server/minecraft-patches/features/0206-Async-chunk-sending.patch @@ -174,7 +174,7 @@ index 0376a10ee0544b13e8fd629a7b13f78811e57a30..aa6b900347635857b84460fa8435b81f // Paper start - PlayerChunkLoadEvent if (io.papermc.paper.event.packet.PlayerChunkLoadEvent.getHandlerList().getRegisteredListeners().length > 0) { diff --git a/net/minecraft/world/level/chunk/LevelChunkSection.java b/net/minecraft/world/level/chunk/LevelChunkSection.java -index 36c033b0ee63dfc273d721fb4b614733e8fdef19..4d06df242ab73411bdefc4770e131b27a6ea668a 100644 +index df717c545472006b99532280c38c1fbef12bcf82..7689e005a7de17fa0411a346f595f40b06bb5ca4 100644 --- a/net/minecraft/world/level/chunk/LevelChunkSection.java +++ b/net/minecraft/world/level/chunk/LevelChunkSection.java @@ -18,7 +18,7 @@ public class LevelChunkSection implements ca.spottedleaf.moonrise.patches.block_ @@ -185,4 +185,4 @@ index 36c033b0ee63dfc273d721fb4b614733e8fdef19..4d06df242ab73411bdefc4770e131b27 + volatile short nonEmptyBlockCount; // Paper - package private // Leaf - Async chunk sending - volatile private short tickingBlockCount; private short tickingFluidCount; - private boolean isRandomlyTickingBlocksStatus; // Leaf - Cache random tick block status + public final PalettedContainer states; diff --git a/leaf-server/minecraft-patches/features/0208-Spawner-Configurations.patch b/leaf-server/minecraft-patches/features/0207-Spawner-Configurations.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0208-Spawner-Configurations.patch rename to leaf-server/minecraft-patches/features/0207-Spawner-Configurations.patch diff --git a/leaf-server/minecraft-patches/features/0209-SparklyPaper-Parallel-world-ticking.patch b/leaf-server/minecraft-patches/features/0208-SparklyPaper-Parallel-world-ticking.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0209-SparklyPaper-Parallel-world-ticking.patch rename to leaf-server/minecraft-patches/features/0208-SparklyPaper-Parallel-world-ticking.patch diff --git a/leaf-server/minecraft-patches/features/0210-SparklyPaper-Track-each-world-MSPT.patch b/leaf-server/minecraft-patches/features/0209-SparklyPaper-Track-each-world-MSPT.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0210-SparklyPaper-Track-each-world-MSPT.patch rename to leaf-server/minecraft-patches/features/0209-SparklyPaper-Track-each-world-MSPT.patch diff --git a/leaf-server/minecraft-patches/features/0211-Paper-PR-Fix-cancelled-Projectile-Events-still-consu.patch b/leaf-server/minecraft-patches/features/0210-Paper-PR-Fix-cancelled-Projectile-Events-still-consu.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0211-Paper-PR-Fix-cancelled-Projectile-Events-still-consu.patch rename to leaf-server/minecraft-patches/features/0210-Paper-PR-Fix-cancelled-Projectile-Events-still-consu.patch diff --git a/leaf-server/minecraft-patches/features/0212-Optimize-SetLookAndInteract-and-NearestVisibleLiving.patch b/leaf-server/minecraft-patches/features/0211-Optimize-SetLookAndInteract-and-NearestVisibleLiving.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0212-Optimize-SetLookAndInteract-and-NearestVisibleLiving.patch rename to leaf-server/minecraft-patches/features/0211-Optimize-SetLookAndInteract-and-NearestVisibleLiving.patch diff --git a/leaf-server/minecraft-patches/features/0213-rewrite-InsideBrownianWalk.patch b/leaf-server/minecraft-patches/features/0212-rewrite-InsideBrownianWalk.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0213-rewrite-InsideBrownianWalk.patch rename to leaf-server/minecraft-patches/features/0212-rewrite-InsideBrownianWalk.patch diff --git a/leaf-server/minecraft-patches/features/0214-Use-BFS-on-getSlopeDistance.patch b/leaf-server/minecraft-patches/features/0213-Use-BFS-on-getSlopeDistance.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0214-Use-BFS-on-getSlopeDistance.patch rename to leaf-server/minecraft-patches/features/0213-Use-BFS-on-getSlopeDistance.patch diff --git a/leaf-server/minecraft-patches/features/0215-Paper-PR-Throttle-failed-spawn-attempts.patch b/leaf-server/minecraft-patches/features/0214-Paper-PR-Throttle-failed-spawn-attempts.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0215-Paper-PR-Throttle-failed-spawn-attempts.patch rename to leaf-server/minecraft-patches/features/0214-Paper-PR-Throttle-failed-spawn-attempts.patch diff --git a/leaf-server/minecraft-patches/features/0216-Improve-BlockEntity-ticking-isRemoved-check.patch b/leaf-server/minecraft-patches/features/0215-Improve-BlockEntity-ticking-isRemoved-check.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0216-Improve-BlockEntity-ticking-isRemoved-check.patch rename to leaf-server/minecraft-patches/features/0215-Improve-BlockEntity-ticking-isRemoved-check.patch diff --git a/leaf-server/minecraft-patches/features/0217-Raytrace-AntiXray-SDK-integration.patch b/leaf-server/minecraft-patches/features/0216-Raytrace-AntiXray-SDK-integration.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0217-Raytrace-AntiXray-SDK-integration.patch rename to leaf-server/minecraft-patches/features/0216-Raytrace-AntiXray-SDK-integration.patch diff --git a/leaf-server/minecraft-patches/features/0218-Optimize-addOrUpdateTransientModifier.patch b/leaf-server/minecraft-patches/features/0217-Optimize-addOrUpdateTransientModifier.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0218-Optimize-addOrUpdateTransientModifier.patch rename to leaf-server/minecraft-patches/features/0217-Optimize-addOrUpdateTransientModifier.patch diff --git a/leaf-server/minecraft-patches/features/0219-Optimize-ContextMap.create.patch b/leaf-server/minecraft-patches/features/0218-Optimize-ContextMap.create.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0219-Optimize-ContextMap.create.patch rename to leaf-server/minecraft-patches/features/0218-Optimize-ContextMap.create.patch diff --git a/leaf-server/minecraft-patches/features/0220-Micro-optimizations-for-random-tick.patch b/leaf-server/minecraft-patches/features/0219-Micro-optimizations-for-random-tick.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0220-Micro-optimizations-for-random-tick.patch rename to leaf-server/minecraft-patches/features/0219-Micro-optimizations-for-random-tick.patch diff --git a/leaf-server/minecraft-patches/features/0221-Remove-streams-on-updateConnectedPlayersWithinRange.patch b/leaf-server/minecraft-patches/features/0220-Remove-streams-on-updateConnectedPlayersWithinRange.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0221-Remove-streams-on-updateConnectedPlayersWithinRange.patch rename to leaf-server/minecraft-patches/features/0220-Remove-streams-on-updateConnectedPlayersWithinRange.patch diff --git a/leaf-server/minecraft-patches/features/0222-Remove-streams-on-PlayerDetector.patch b/leaf-server/minecraft-patches/features/0221-Remove-streams-on-PlayerDetector.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0222-Remove-streams-on-PlayerDetector.patch rename to leaf-server/minecraft-patches/features/0221-Remove-streams-on-PlayerDetector.patch diff --git a/leaf-server/minecraft-patches/features/0223-Use-direct-iteration-on-Sensing.tick.patch b/leaf-server/minecraft-patches/features/0222-Use-direct-iteration-on-Sensing.tick.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0223-Use-direct-iteration-on-Sensing.tick.patch rename to leaf-server/minecraft-patches/features/0222-Use-direct-iteration-on-Sensing.tick.patch diff --git a/leaf-server/minecraft-patches/features/0224-Optimise-non-flush-packet-sending.patch b/leaf-server/minecraft-patches/features/0223-Optimise-non-flush-packet-sending.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0224-Optimise-non-flush-packet-sending.patch rename to leaf-server/minecraft-patches/features/0223-Optimise-non-flush-packet-sending.patch diff --git a/leaf-server/minecraft-patches/features/0225-Prevent-double-chunk-retrieving-in-entity-fluid-push.patch b/leaf-server/minecraft-patches/features/0224-Prevent-double-chunk-retrieving-in-entity-fluid-push.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0225-Prevent-double-chunk-retrieving-in-entity-fluid-push.patch rename to leaf-server/minecraft-patches/features/0224-Prevent-double-chunk-retrieving-in-entity-fluid-push.patch diff --git a/leaf-server/minecraft-patches/features/0226-Null-handling-on-MultifaceSpreader.patch b/leaf-server/minecraft-patches/features/0225-Null-handling-on-MultifaceSpreader.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0226-Null-handling-on-MultifaceSpreader.patch rename to leaf-server/minecraft-patches/features/0225-Null-handling-on-MultifaceSpreader.patch diff --git a/leaf-server/minecraft-patches/features/0227-More-virtual-threads.patch b/leaf-server/minecraft-patches/features/0226-More-virtual-threads.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0227-More-virtual-threads.patch rename to leaf-server/minecraft-patches/features/0226-More-virtual-threads.patch diff --git a/leaf-server/minecraft-patches/features/0228-Async-target-finding.patch b/leaf-server/minecraft-patches/features/0227-Async-target-finding.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0228-Async-target-finding.patch rename to leaf-server/minecraft-patches/features/0227-Async-target-finding.patch diff --git a/leaf-server/minecraft-patches/features/0229-Optimize-ThreadedTicketLevelPropagator.patch b/leaf-server/minecraft-patches/features/0228-Optimize-ThreadedTicketLevelPropagator.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0229-Optimize-ThreadedTicketLevelPropagator.patch rename to leaf-server/minecraft-patches/features/0228-Optimize-ThreadedTicketLevelPropagator.patch diff --git a/leaf-server/minecraft-patches/features/0230-Optimise-MobEffectUtil-getDigSpeedAmplification.patch b/leaf-server/minecraft-patches/features/0229-Optimise-MobEffectUtil-getDigSpeedAmplification.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0230-Optimise-MobEffectUtil-getDigSpeedAmplification.patch rename to leaf-server/minecraft-patches/features/0229-Optimise-MobEffectUtil-getDigSpeedAmplification.patch diff --git a/leaf-server/minecraft-patches/features/0231-Optimise-chunkUnloads.patch b/leaf-server/minecraft-patches/features/0230-Optimise-chunkUnloads.patch similarity index 97% rename from leaf-server/minecraft-patches/features/0231-Optimise-chunkUnloads.patch rename to leaf-server/minecraft-patches/features/0230-Optimise-chunkUnloads.patch index 8035215e..106ef43f 100644 --- a/leaf-server/minecraft-patches/features/0231-Optimise-chunkUnloads.patch +++ b/leaf-server/minecraft-patches/features/0230-Optimise-chunkUnloads.patch @@ -159,18 +159,18 @@ index 4ca68a903e67606fc4ef0bfa9862a73797121c8b..bed3a64388bb43e47c2ba4e67f7dde5b public static final class SaveState { diff --git a/net/minecraft/world/level/chunk/LevelChunkSection.java b/net/minecraft/world/level/chunk/LevelChunkSection.java -index 4d06df242ab73411bdefc4770e131b27a6ea668a..fb936344ba363490f2255682678f08e219fdec3d 100644 +index 7689e005a7de17fa0411a346f595f40b06bb5ca4..5c5d51d5341dac68f89253c5181e1a099c305fac 100644 --- a/net/minecraft/world/level/chunk/LevelChunkSection.java +++ b/net/minecraft/world/level/chunk/LevelChunkSection.java -@@ -24,6 +24,7 @@ public class LevelChunkSection implements ca.spottedleaf.moonrise.patches.block_ - private boolean isRandomlyTickingBlocksStatus; // Leaf - Cache random tick block status +@@ -23,6 +23,7 @@ public class LevelChunkSection implements ca.spottedleaf.moonrise.patches.block_ + private short tickingFluidCount; public final PalettedContainer states; private PalettedContainer> biomes; // CraftBukkit - read/write + private boolean modified = false; // Leaf - Optimize chunkUnload // Paper start - block counting private static final it.unimi.dsi.fastutil.shorts.ShortArrayList FULL_LIST = new it.unimi.dsi.fastutil.shorts.ShortArrayList(16*16*16); -@@ -135,6 +136,7 @@ public class LevelChunkSection implements ca.spottedleaf.moonrise.patches.block_ +@@ -133,6 +134,7 @@ public class LevelChunkSection implements ca.spottedleaf.moonrise.patches.block_ // Paper end - block counting public BlockState setBlockState(int x, int y, int z, BlockState state, boolean useLocks) { @@ -178,7 +178,7 @@ index 4d06df242ab73411bdefc4770e131b27a6ea668a..fb936344ba363490f2255682678f08e2 BlockState blockState; if (useLocks) { blockState = this.states.getAndSet(x, y, z, state); -@@ -328,7 +330,32 @@ public class LevelChunkSection implements ca.spottedleaf.moonrise.patches.block_ +@@ -323,7 +325,31 @@ public class LevelChunkSection implements ca.spottedleaf.moonrise.patches.block_ this.biomes = palettedContainer; } @@ -190,7 +190,6 @@ index 4d06df242ab73411bdefc4770e131b27a6ea668a..fb936344ba363490f2255682678f08e2 + this.tickingFluidCount = tickingFluidCount; + this.states = states; + this.biomes = biomes; -+ this.isRandomlyTickingBlocksStatus = this.tickingBlockCount > 0; // Leaf - Cache random tick block status + } + // Leaf end - Optimize chunkUnload + diff --git a/leaf-server/minecraft-patches/features/0232-Optimize-BlockEntityType-isValid.patch b/leaf-server/minecraft-patches/features/0231-Optimize-BlockEntityType-isValid.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0232-Optimize-BlockEntityType-isValid.patch rename to leaf-server/minecraft-patches/features/0231-Optimize-BlockEntityType-isValid.patch diff --git a/leaf-server/minecraft-patches/features/0233-Paper-PR-Add-ticket-on-player-join-to-avoid-chunk-lo.patch b/leaf-server/minecraft-patches/features/0232-Paper-PR-Add-ticket-on-player-join-to-avoid-chunk-lo.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0233-Paper-PR-Add-ticket-on-player-join-to-avoid-chunk-lo.patch rename to leaf-server/minecraft-patches/features/0232-Paper-PR-Add-ticket-on-player-join-to-avoid-chunk-lo.patch diff --git a/leaf-server/minecraft-patches/features/0234-Sakura-copy-EntityList-implementation-to-BasicEntity.patch b/leaf-server/minecraft-patches/features/0233-Sakura-copy-EntityList-implementation-to-BasicEntity.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0234-Sakura-copy-EntityList-implementation-to-BasicEntity.patch rename to leaf-server/minecraft-patches/features/0233-Sakura-copy-EntityList-implementation-to-BasicEntity.patch diff --git a/leaf-server/minecraft-patches/features/0235-Protocol-Core.patch b/leaf-server/minecraft-patches/features/0234-Protocol-Core.patch similarity index 97% rename from leaf-server/minecraft-patches/features/0235-Protocol-Core.patch rename to leaf-server/minecraft-patches/features/0234-Protocol-Core.patch index d436cd87..c3565e55 100644 --- a/leaf-server/minecraft-patches/features/0235-Protocol-Core.patch +++ b/leaf-server/minecraft-patches/features/0234-Protocol-Core.patch @@ -46,7 +46,7 @@ index 258a90b1a35c2899481c6b37f949670d4d44e2f5..29f250f78bdd3c523b859d09d5561db0 private void updatePlayerAttributes() { diff --git a/net/minecraft/server/network/ServerCommonPacketListenerImpl.java b/net/minecraft/server/network/ServerCommonPacketListenerImpl.java -index 84030c40f2f91b433b3ccd21e0367d2f8b7c97b6..03cd2af813c3cca167b07115f03f6b5eae6d4185 100644 +index 6b73679351f786362daf988b02b2a226d6b43984..3e66777b784825e28b4055e9a981cb387489a188 100644 --- a/net/minecraft/server/network/ServerCommonPacketListenerImpl.java +++ b/net/minecraft/server/network/ServerCommonPacketListenerImpl.java @@ -190,6 +190,12 @@ public abstract class ServerCommonPacketListenerImpl implements ServerCommonPack diff --git a/leaf-server/minecraft-patches/features/0236-Async-switch-connection-state.patch b/leaf-server/minecraft-patches/features/0235-Async-switch-connection-state.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0236-Async-switch-connection-state.patch rename to leaf-server/minecraft-patches/features/0235-Async-switch-connection-state.patch diff --git a/leaf-server/minecraft-patches/features/0237-Optimize-BlockEntities-tickersInLevel.patch b/leaf-server/minecraft-patches/features/0236-Optimize-BlockEntities-tickersInLevel.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0237-Optimize-BlockEntities-tickersInLevel.patch rename to leaf-server/minecraft-patches/features/0236-Optimize-BlockEntities-tickersInLevel.patch diff --git a/leaf-server/minecraft-patches/features/0238-Pluto-Check-if-the-cactus-can-even-survive-being-pla.patch b/leaf-server/minecraft-patches/features/0237-Pluto-Check-if-the-cactus-can-even-survive-being-pla.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0238-Pluto-Check-if-the-cactus-can-even-survive-being-pla.patch rename to leaf-server/minecraft-patches/features/0237-Pluto-Check-if-the-cactus-can-even-survive-being-pla.patch diff --git a/leaf-server/minecraft-patches/features/0239-Flush-location-while-knockback.patch b/leaf-server/minecraft-patches/features/0238-Flush-location-while-knockback.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0239-Flush-location-while-knockback.patch rename to leaf-server/minecraft-patches/features/0238-Flush-location-while-knockback.patch diff --git a/leaf-server/minecraft-patches/features/0240-Only-tick-items-at-hand.patch b/leaf-server/minecraft-patches/features/0239-Only-tick-items-at-hand.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0240-Only-tick-items-at-hand.patch rename to leaf-server/minecraft-patches/features/0239-Only-tick-items-at-hand.patch diff --git a/leaf-server/minecraft-patches/features/0241-Smart-sort-items-in-NearestItemSensor.patch b/leaf-server/minecraft-patches/features/0240-Smart-sort-items-in-NearestItemSensor.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0241-Smart-sort-items-in-NearestItemSensor.patch rename to leaf-server/minecraft-patches/features/0240-Smart-sort-items-in-NearestItemSensor.patch diff --git a/leaf-server/minecraft-patches/features/0242-Optimise-player-movement-checks.patch b/leaf-server/minecraft-patches/features/0241-Optimise-player-movement-checks.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0242-Optimise-player-movement-checks.patch rename to leaf-server/minecraft-patches/features/0241-Optimise-player-movement-checks.patch diff --git a/leaf-server/minecraft-patches/features/0243-Remove-streams-in-MobSensor.patch b/leaf-server/minecraft-patches/features/0242-Remove-streams-in-MobSensor.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0243-Remove-streams-in-MobSensor.patch rename to leaf-server/minecraft-patches/features/0242-Remove-streams-in-MobSensor.patch diff --git a/leaf-server/minecraft-patches/features/0244-Remove-streams-in-TemptingSensor.patch b/leaf-server/minecraft-patches/features/0243-Remove-streams-in-TemptingSensor.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0244-Remove-streams-in-TemptingSensor.patch rename to leaf-server/minecraft-patches/features/0243-Remove-streams-in-TemptingSensor.patch diff --git a/leaf-server/minecraft-patches/features/0245-Use-HashedList-on-WeightedList.patch b/leaf-server/minecraft-patches/features/0244-Use-HashedList-on-WeightedList.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0245-Use-HashedList-on-WeightedList.patch rename to leaf-server/minecraft-patches/features/0244-Use-HashedList-on-WeightedList.patch diff --git a/leaf-server/minecraft-patches/features/0246-Add-configurable-death-item-drop-knockback-settings.patch b/leaf-server/minecraft-patches/features/0245-Add-configurable-death-item-drop-knockback-settings.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0246-Add-configurable-death-item-drop-knockback-settings.patch rename to leaf-server/minecraft-patches/features/0245-Add-configurable-death-item-drop-knockback-settings.patch diff --git a/leaf-server/minecraft-patches/features/0247-Optimize-getScaledTrackingDistance.patch b/leaf-server/minecraft-patches/features/0246-Optimize-getScaledTrackingDistance.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0247-Optimize-getScaledTrackingDistance.patch rename to leaf-server/minecraft-patches/features/0246-Optimize-getScaledTrackingDistance.patch diff --git a/leaf-server/minecraft-patches/features/0248-Optimize-SynchedEntityData-packDirty.patch b/leaf-server/minecraft-patches/features/0247-Optimize-SynchedEntityData-packDirty.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0248-Optimize-SynchedEntityData-packDirty.patch rename to leaf-server/minecraft-patches/features/0247-Optimize-SynchedEntityData-packDirty.patch diff --git a/leaf-server/minecraft-patches/features/0249-Optimize-isEyeInFluid.patch b/leaf-server/minecraft-patches/features/0248-Optimize-isEyeInFluid.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0249-Optimize-isEyeInFluid.patch rename to leaf-server/minecraft-patches/features/0248-Optimize-isEyeInFluid.patch diff --git a/leaf-server/minecraft-patches/features/0250-Cache-block-path-type.patch b/leaf-server/minecraft-patches/features/0249-Cache-block-path-type.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0250-Cache-block-path-type.patch rename to leaf-server/minecraft-patches/features/0249-Cache-block-path-type.patch diff --git a/leaf-server/minecraft-patches/features/0251-optimize-getEntityStatus.patch b/leaf-server/minecraft-patches/features/0250-optimize-getEntityStatus.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0251-optimize-getEntityStatus.patch rename to leaf-server/minecraft-patches/features/0250-optimize-getEntityStatus.patch diff --git a/leaf-server/minecraft-patches/features/0252-Rail-Optimization-optimized-PoweredRailBlock-logic.patch b/leaf-server/minecraft-patches/features/0251-Rail-Optimization-optimized-PoweredRailBlock-logic.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0252-Rail-Optimization-optimized-PoweredRailBlock-logic.patch rename to leaf-server/minecraft-patches/features/0251-Rail-Optimization-optimized-PoweredRailBlock-logic.patch diff --git a/leaf-server/minecraft-patches/features/0253-optimise-ChunkGenerator-getMobsAt.patch b/leaf-server/minecraft-patches/features/0252-optimise-ChunkGenerator-getMobsAt.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0253-optimise-ChunkGenerator-getMobsAt.patch rename to leaf-server/minecraft-patches/features/0252-optimise-ChunkGenerator-getMobsAt.patch diff --git a/leaf-server/minecraft-patches/features/0254-cache-getBiome.patch b/leaf-server/minecraft-patches/features/0253-cache-getBiome.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0254-cache-getBiome.patch rename to leaf-server/minecraft-patches/features/0253-cache-getBiome.patch diff --git a/leaf-server/minecraft-patches/features/0255-optimize-mob-spawning.patch b/leaf-server/minecraft-patches/features/0254-optimize-mob-spawning.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0255-optimize-mob-spawning.patch rename to leaf-server/minecraft-patches/features/0254-optimize-mob-spawning.patch diff --git a/leaf-server/minecraft-patches/features/0256-optimize-structure-map.patch b/leaf-server/minecraft-patches/features/0255-optimize-structure-map.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0256-optimize-structure-map.patch rename to leaf-server/minecraft-patches/features/0255-optimize-structure-map.patch diff --git a/leaf-server/minecraft-patches/features/0257-throttle-mob-spawning.patch b/leaf-server/minecraft-patches/features/0256-throttle-mob-spawning.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0257-throttle-mob-spawning.patch rename to leaf-server/minecraft-patches/features/0256-throttle-mob-spawning.patch diff --git a/leaf-server/minecraft-patches/features/0258-Add-BlockExplosionHitEvent.patch b/leaf-server/minecraft-patches/features/0257-Add-BlockExplosionHitEvent.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0258-Add-BlockExplosionHitEvent.patch rename to leaf-server/minecraft-patches/features/0257-Add-BlockExplosionHitEvent.patch diff --git a/leaf-server/minecraft-patches/features/0259-Old-Blast-Protection-explosion-knockback.patch b/leaf-server/minecraft-patches/features/0258-Old-Blast-Protection-explosion-knockback.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0259-Old-Blast-Protection-explosion-knockback.patch rename to leaf-server/minecraft-patches/features/0258-Old-Blast-Protection-explosion-knockback.patch diff --git a/leaf-server/minecraft-patches/features/0260-Use-UUID-for-cure-reputation.patch b/leaf-server/minecraft-patches/features/0259-Use-UUID-for-cure-reputation.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0260-Use-UUID-for-cure-reputation.patch rename to leaf-server/minecraft-patches/features/0259-Use-UUID-for-cure-reputation.patch diff --git a/leaf-server/minecraft-patches/features/0261-Fix-crash-during-parsing-unknown-command-message.patch b/leaf-server/minecraft-patches/features/0260-Fix-crash-during-parsing-unknown-command-message.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0261-Fix-crash-during-parsing-unknown-command-message.patch rename to leaf-server/minecraft-patches/features/0260-Fix-crash-during-parsing-unknown-command-message.patch diff --git a/leaf-server/minecraft-patches/features/0262-optimize-random-tick.patch b/leaf-server/minecraft-patches/features/0261-optimize-random-tick.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0262-optimize-random-tick.patch rename to leaf-server/minecraft-patches/features/0261-optimize-random-tick.patch diff --git a/leaf-server/minecraft-patches/features/0263-do-not-log-invalid-flatten-text-component-parse.patch b/leaf-server/minecraft-patches/features/0262-do-not-log-invalid-flatten-text-component-parse.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0263-do-not-log-invalid-flatten-text-component-parse.patch rename to leaf-server/minecraft-patches/features/0262-do-not-log-invalid-flatten-text-component-parse.patch diff --git a/leaf-server/minecraft-patches/features/0264-Fast-BiomeManager-seed-obfuscation.patch b/leaf-server/minecraft-patches/features/0263-Fast-BiomeManager-seed-obfuscation.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0264-Fast-BiomeManager-seed-obfuscation.patch rename to leaf-server/minecraft-patches/features/0263-Fast-BiomeManager-seed-obfuscation.patch diff --git a/leaf-server/minecraft-patches/features/0265-Replace-EntitySelectorOptions-map-with-optimized-col.patch b/leaf-server/minecraft-patches/features/0264-Replace-EntitySelectorOptions-map-with-optimized-col.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0265-Replace-EntitySelectorOptions-map-with-optimized-col.patch rename to leaf-server/minecraft-patches/features/0264-Replace-EntitySelectorOptions-map-with-optimized-col.patch diff --git a/leaf-server/minecraft-patches/features/0266-optimize-no-action-time.patch b/leaf-server/minecraft-patches/features/0265-optimize-no-action-time.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0266-optimize-no-action-time.patch rename to leaf-server/minecraft-patches/features/0265-optimize-no-action-time.patch diff --git a/leaf-server/minecraft-patches/features/0267-optimize-waypoint.patch b/leaf-server/minecraft-patches/features/0266-optimize-waypoint.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0267-optimize-waypoint.patch rename to leaf-server/minecraft-patches/features/0266-optimize-waypoint.patch diff --git a/leaf-server/minecraft-patches/features/0268-Paw-optimization.patch b/leaf-server/minecraft-patches/features/0267-Paw-optimization.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0268-Paw-optimization.patch rename to leaf-server/minecraft-patches/features/0267-Paw-optimization.patch diff --git a/leaf-server/minecraft-patches/features/0269-Fix-Paper-config-fixClimbingBypassingCrammingRule.patch b/leaf-server/minecraft-patches/features/0268-Fix-Paper-config-fixClimbingBypassingCrammingRule.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0269-Fix-Paper-config-fixClimbingBypassingCrammingRule.patch rename to leaf-server/minecraft-patches/features/0268-Fix-Paper-config-fixClimbingBypassingCrammingRule.patch diff --git a/leaf-server/minecraft-patches/features/0270-Skip-inactive-entity-for-execute.patch b/leaf-server/minecraft-patches/features/0269-Skip-inactive-entity-for-execute.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0270-Skip-inactive-entity-for-execute.patch rename to leaf-server/minecraft-patches/features/0269-Skip-inactive-entity-for-execute.patch diff --git a/leaf-server/minecraft-patches/features/0271-Optimise-getEntities.patch b/leaf-server/minecraft-patches/features/0270-Optimise-getEntities.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0271-Optimise-getEntities.patch rename to leaf-server/minecraft-patches/features/0270-Optimise-getEntities.patch diff --git a/leaf-server/minecraft-patches/features/0272-fix-MC-298464.patch b/leaf-server/minecraft-patches/features/0271-fix-MC-298464.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0272-fix-MC-298464.patch rename to leaf-server/minecraft-patches/features/0271-fix-MC-298464.patch diff --git a/leaf-server/minecraft-patches/features/0273-Re-route-SetClosestHomeAsWalkTarget-s-poi-finding-to.patch b/leaf-server/minecraft-patches/features/0272-Re-route-SetClosestHomeAsWalkTarget-s-poi-finding-to.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0273-Re-route-SetClosestHomeAsWalkTarget-s-poi-finding-to.patch rename to leaf-server/minecraft-patches/features/0272-Re-route-SetClosestHomeAsWalkTarget-s-poi-finding-to.patch diff --git a/leaf-server/minecraft-patches/features/0274-optimize-checkInsideBlocks-calls.patch b/leaf-server/minecraft-patches/features/0273-optimize-checkInsideBlocks-calls.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0274-optimize-checkInsideBlocks-calls.patch rename to leaf-server/minecraft-patches/features/0273-optimize-checkInsideBlocks-calls.patch diff --git a/leaf-server/minecraft-patches/features/0275-Op-lock.patch b/leaf-server/minecraft-patches/features/0274-Op-lock.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0275-Op-lock.patch rename to leaf-server/minecraft-patches/features/0274-Op-lock.patch diff --git a/leaf-server/minecraft-patches/features/0276-Custom-NonNullList.patch b/leaf-server/minecraft-patches/features/0275-Custom-NonNullList.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0276-Custom-NonNullList.patch rename to leaf-server/minecraft-patches/features/0275-Custom-NonNullList.patch diff --git a/leaf-server/minecraft-patches/features/0277-Optimise-TextColor.patch b/leaf-server/minecraft-patches/features/0276-Optimise-TextColor.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0277-Optimise-TextColor.patch rename to leaf-server/minecraft-patches/features/0276-Optimise-TextColor.patch diff --git a/leaf-server/minecraft-patches/features/0278-Do-not-create-fire-if-explosion-was-cancelled.patch b/leaf-server/minecraft-patches/features/0277-Do-not-create-fire-if-explosion-was-cancelled.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0278-Do-not-create-fire-if-explosion-was-cancelled.patch rename to leaf-server/minecraft-patches/features/0277-Do-not-create-fire-if-explosion-was-cancelled.patch diff --git a/leaf-server/minecraft-patches/features/0279-Skip-BlockPhysicsEvent-if-no-listeners.patch b/leaf-server/minecraft-patches/features/0278-Skip-BlockPhysicsEvent-if-no-listeners.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0279-Skip-BlockPhysicsEvent-if-no-listeners.patch rename to leaf-server/minecraft-patches/features/0278-Skip-BlockPhysicsEvent-if-no-listeners.patch diff --git a/leaf-server/minecraft-patches/features/0280-Lithium-equipment-tracking.patch b/leaf-server/minecraft-patches/features/0279-Lithium-equipment-tracking.patch similarity index 99% rename from leaf-server/minecraft-patches/features/0280-Lithium-equipment-tracking.patch rename to leaf-server/minecraft-patches/features/0279-Lithium-equipment-tracking.patch index a59e9466..be7d47ed 100644 --- a/leaf-server/minecraft-patches/features/0280-Lithium-equipment-tracking.patch +++ b/leaf-server/minecraft-patches/features/0279-Lithium-equipment-tracking.patch @@ -241,7 +241,7 @@ index 90814ad07a2686c5a274860395f5aca29cc3bf13..94c7ae9535a235abb8fddf0ca6578dfa + } } diff --git a/net/minecraft/world/entity/LivingEntity.java b/net/minecraft/world/entity/LivingEntity.java -index a55b1534dc3c0745ff569f5c1e07dbeaba0fe57d..dfe39967ba858f27bf6a18d820dae2e2f737c142 100644 +index a55b1534dc3c0745ff569f5c1e07dbeaba0fe57d..089cac94935865039cea04485560f42c4909689c 100644 --- a/net/minecraft/world/entity/LivingEntity.java +++ b/net/minecraft/world/entity/LivingEntity.java @@ -431,7 +431,7 @@ public abstract class LivingEntity extends Entity implements Attackable, Waypoin