diff --git a/patches/server/0059-Avoid-searching-for-lava-if-throttled-water-flow-spe.patch b/patches/server/0059-Avoid-searching-for-lava-if-throttled-water-flow-spe.patch new file mode 100644 index 0000000..e629e1f --- /dev/null +++ b/patches/server/0059-Avoid-searching-for-lava-if-throttled-water-flow-spe.patch @@ -0,0 +1,20 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Samsuik +Date: Mon, 22 Jan 2024 15:24:51 +0000 +Subject: [PATCH] Avoid searching for lava if throttled water flow speed is + default + + +diff --git a/src/main/java/net/minecraft/world/level/block/LiquidBlock.java b/src/main/java/net/minecraft/world/level/block/LiquidBlock.java +index aaac136acbef15a1925b4b6e8da7bfc4f75360de..b9d2646e1427c611475d66e2ab75d61b8aec427b 100644 +--- a/src/main/java/net/minecraft/world/level/block/LiquidBlock.java ++++ b/src/main/java/net/minecraft/world/level/block/LiquidBlock.java +@@ -147,7 +147,7 @@ public class LiquidBlock extends Block implements BucketPickup { + + // Paper start - Get flow speed. Throttle if its water and flowing adjacent to lava + public int getFlowSpeed(Level world, BlockPos blockposition) { +- if (net.minecraft.core.registries.BuiltInRegistries.FLUID.wrapAsHolder(this.fluid).is(FluidTags.WATER)) { ++ if (net.minecraft.core.registries.BuiltInRegistries.FLUID.wrapAsHolder(this.fluid).is(FluidTags.WATER) && this.fluid.getTickDelay(world) != world.paperConfig().environment.waterOverLavaFlowSpeed) { // Sakura + if ( + isLava(world, blockposition.north(1)) || + isLava(world, blockposition.south(1)) ||