2016-12-09 02:53:15 +01:00
|
|
|
--- a/net/minecraft/server/BlockFluids.java
|
|
|
|
+++ b/net/minecraft/server/BlockFluids.java
|
2018-12-25 22:00:00 +01:00
|
|
|
@@ -116,14 +116,20 @@
|
2018-12-06 00:00:00 +01:00
|
|
|
Fluid fluid = world.getFluid(blockposition);
|
2018-07-15 02:00:00 +02:00
|
|
|
|
|
|
|
if (fluid.d()) {
|
2016-12-09 02:53:15 +01:00
|
|
|
- world.setTypeUpdate(blockposition, Blocks.OBSIDIAN.getBlockData());
|
|
|
|
- this.fizz(world, blockposition);
|
|
|
|
+ // CraftBukkit start
|
2018-07-15 02:00:00 +02:00
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(world, blockposition, Blocks.OBSIDIAN.getBlockData())) {
|
2016-12-09 02:53:15 +01:00
|
|
|
+ this.fizz(world, blockposition);
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2018-07-15 02:00:00 +02:00
|
|
|
return false;
|
2016-12-09 02:53:15 +01:00
|
|
|
}
|
|
|
|
|
2018-12-06 00:00:00 +01:00
|
|
|
if (fluid.getHeight() >= 0.44444445F) {
|
2016-12-09 02:53:15 +01:00
|
|
|
- world.setTypeUpdate(blockposition, Blocks.COBBLESTONE.getBlockData());
|
|
|
|
- this.fizz(world, blockposition);
|
|
|
|
+ // CraftBukkit start
|
2018-07-15 02:00:00 +02:00
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(world, blockposition, Blocks.COBBLESTONE.getBlockData())) {
|
2016-12-09 02:53:15 +01:00
|
|
|
+ this.fizz(world, blockposition);
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2018-07-15 02:00:00 +02:00
|
|
|
return false;
|
2016-12-09 02:53:15 +01:00
|
|
|
}
|
|
|
|
}
|