aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/LiquidBlock.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/LiquidBlock.java.patch')
-rw-r--r--patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/LiquidBlock.java.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/LiquidBlock.java.patch b/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/LiquidBlock.java.patch
new file mode 100644
index 0000000000..9deb7262c9
--- /dev/null
+++ b/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/LiquidBlock.java.patch
@@ -0,0 +1,29 @@
+--- a/net/minecraft/world/level/block/LiquidBlock.java
++++ b/net/minecraft/world/level/block/LiquidBlock.java
+@@ -161,14 +173,21 @@
+ BlockPos blockPos = pos.relative(direction.getOpposite());
+ if (level.getFluidState(blockPos).is(FluidTags.WATER)) {
+ Block block = level.getFluidState(pos).isSource() ? Blocks.OBSIDIAN : Blocks.COBBLESTONE;
+- level.setBlockAndUpdate(pos, block.defaultBlockState());
+- this.fizz(level, pos);
++
++ // CraftBukkit start
++ if (org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(level, pos, block.defaultBlockState())) {
++ this.fizz(level, pos);
++ }
++ // CraftBukkit end
+ return false;
+ }
+
+- if (isSoulSoil && level.getBlockState(blockPos).is(Blocks.BLUE_ICE)) {
+- level.setBlockAndUpdate(pos, Blocks.BASALT.defaultBlockState());
+- this.fizz(level, pos);
++ 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;
+ }
+ }