blob: bf57f953340ecc1d3d3cc91897d1176ddc887351 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
}
}
|