3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-15 20:40:07 +01:00
Paper/nms-patches/BlockFluids.patch

28 Zeilen
1.3 KiB
Diff

--- 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()) {
- 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())) {
+ this.fizz(world, blockposition);
+ }
+ // CraftBukkit end
2018-07-15 02:00:00 +02:00
return false;
}
2019-04-23 04:00:00 +02:00
if (fluid.getHeight(world, blockposition) >= 0.44444445F) {
- 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())) {
+ this.fizz(world, blockposition);
+ }
+ // CraftBukkit end
2018-07-15 02:00:00 +02:00
return false;
}
}