mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
b3a8254758
By: md_5 <git@md-5.net>
27 lines
1.4 KiB
Diff
27 lines
1.4 KiB
Diff
--- a/net/minecraft/world/level/block/BlockFluids.java
|
|
+++ b/net/minecraft/world/level/block/BlockFluids.java
|
|
@@ -143,14 +143,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;
|
|
}
|
|
}
|