mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 19:15:32 +01:00
28 lines
1.3 KiB
Diff
28 lines
1.3 KiB
Diff
--- a/net/minecraft/server/BlockFluids.java
|
|
+++ b/net/minecraft/server/BlockFluids.java
|
|
@@ -116,14 +116,20 @@
|
|
Fluid fluid = world.getFluid(blockposition);
|
|
|
|
if (fluid.d()) {
|
|
- world.setTypeUpdate(blockposition, Blocks.OBSIDIAN.getBlockData());
|
|
- this.fizz(world, blockposition);
|
|
+ // CraftBukkit start
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(world, blockposition, Blocks.OBSIDIAN.getBlockData())) {
|
|
+ this.fizz(world, blockposition);
|
|
+ }
|
|
+ // CraftBukkit end
|
|
return false;
|
|
}
|
|
|
|
if (fluid.getHeight() >= 0.44444445F) {
|
|
- world.setTypeUpdate(blockposition, Blocks.COBBLESTONE.getBlockData());
|
|
- this.fizz(world, blockposition);
|
|
+ // CraftBukkit start
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(world, blockposition, Blocks.COBBLESTONE.getBlockData())) {
|
|
+ this.fizz(world, blockposition);
|
|
+ }
|
|
+ // CraftBukkit end
|
|
return false;
|
|
}
|
|
}
|