2016-12-09 02:53:15 +01:00
|
|
|
--- a/net/minecraft/server/BlockFluids.java
|
|
|
|
+++ b/net/minecraft/server/BlockFluids.java
|
2019-04-23 04:00:00 +02:00
|
|
|
@@ -111,14 +111,20 @@
|
2018-12-06 00:00:00 +01:00
|
|
|
Fluid fluid = world.getFluid(blockposition);
|
2018-07-15 02:00:00 +02:00
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
if (fluid.isSource()) {
|
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
|
|
|
}
|
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
if (fluid.getHeight(world, blockposition) >= 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
|
|
|
}
|
|
|
|
}
|