mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-18 00:25:39 +01:00
28 lines
1.5 KiB
Diff
28 lines
1.5 KiB
Diff
--- a/net/minecraft/server/BlockFluids.java
|
|
+++ b/net/minecraft/server/BlockFluids.java
|
|
@@ -113,14 +113,20 @@
|
|
if (world.getFluid(blockposition1).a((Tag) TagsFluid.WATER)) {
|
|
Block block = world.getFluid(blockposition).isSource() ? Blocks.OBSIDIAN : Blocks.COBBLESTONE;
|
|
|
|
- world.setTypeUpdate(blockposition, block.getBlockData());
|
|
- this.fizz(world, blockposition);
|
|
+ // CraftBukkit start
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(world, blockposition, block.getBlockData())) {
|
|
+ this.fizz(world, blockposition);
|
|
+ }
|
|
+ // CraftBukkit end
|
|
return false;
|
|
}
|
|
|
|
if (flag && world.getType(blockposition1).a(Blocks.BLUE_ICE)) {
|
|
- world.setTypeUpdate(blockposition, Blocks.BASALT.getBlockData());
|
|
- this.fizz(world, blockposition);
|
|
+ // CraftBukkit start
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(world, blockposition, Blocks.BASALT.getBlockData())) {
|
|
+ this.fizz(world, blockposition);
|
|
+ }
|
|
+ // CraftBukkit end
|
|
return false;
|
|
}
|
|
}
|