diff options
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/LiquidBlock.java.patch')
-rw-r--r-- | patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/LiquidBlock.java.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/LiquidBlock.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/LiquidBlock.java.patch new file mode 100644 index 0000000000..bf57f95334 --- /dev/null +++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/LiquidBlock.java.patch @@ -0,0 +1,28 @@ +--- a/net/minecraft/world/level/block/LiquidBlock.java ++++ b/net/minecraft/world/level/block/LiquidBlock.java +@@ -188,14 +174,20 @@ + if (level.getFluidState(blockpos1).is(FluidTags.WATER)) { + Block block = level.getFluidState(blockpos).isSource() ? Blocks.OBSIDIAN : Blocks.COBBLESTONE; + +- level.setBlockAndUpdate(blockpos, block.defaultBlockState()); +- this.fizz(level, blockpos); ++ // CraftBukkit start ++ if (org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(level, pos, block.defaultBlockState())) { ++ this.fizz(level, pos); ++ } ++ // CraftBukkit end + return false; + } + +- if (flag && level.getBlockState(blockpos1).is(Blocks.BLUE_ICE)) { +- level.setBlockAndUpdate(blockpos, Blocks.BASALT.defaultBlockState()); +- this.fizz(level, blockpos); ++ if (flag && level.getBlockState(blockposition1).is(Blocks.BLUE_ICE)) { ++ // CraftBukkit start ++ if (org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(level, pos, Blocks.BASALT.defaultBlockState())) { ++ this.fizz(level, pos); ++ } ++ // CraftBukkit end + return false; + } + } |