2016-12-09 02:53:15 +01:00
|
|
|
--- a/net/minecraft/server/BlockFluids.java
|
|
|
|
+++ b/net/minecraft/server/BlockFluids.java
|
2017-05-14 04:00:00 +02:00
|
|
|
@@ -175,14 +175,20 @@
|
2016-12-09 02:53:15 +01:00
|
|
|
Integer integer = (Integer) iblockdata.get(BlockFluids.LEVEL);
|
|
|
|
|
|
|
|
if (integer.intValue() == 0) {
|
|
|
|
- world.setTypeUpdate(blockposition, Blocks.OBSIDIAN.getBlockData());
|
|
|
|
- this.fizz(world, blockposition);
|
|
|
|
+ // CraftBukkit start
|
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(world, blockposition, Blocks.OBSIDIAN, null)) {
|
|
|
|
+ this.fizz(world, blockposition);
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (integer.intValue() <= 4) {
|
|
|
|
- world.setTypeUpdate(blockposition, Blocks.COBBLESTONE.getBlockData());
|
|
|
|
- this.fizz(world, blockposition);
|
|
|
|
+ // CraftBukkit start
|
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(world, blockposition, Blocks.COBBLESTONE, null)) {
|
|
|
|
+ this.fizz(world, blockposition);
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|