2016-12-09 02:53:15 +01:00
|
|
|
--- a/net/minecraft/server/BlockFluids.java
|
|
|
|
+++ b/net/minecraft/server/BlockFluids.java
|
2018-08-26 04:00:00 +02:00
|
|
|
@@ -57,10 +57,10 @@
|
2018-07-15 02:00:00 +02:00
|
|
|
public VoxelShape a(IBlockData iblockdata, IBlockAccess iblockaccess, BlockPosition blockposition) {
|
|
|
|
Fluid fluid = iblockaccess.b(blockposition.up());
|
2016-12-09 02:53:15 +01:00
|
|
|
|
2018-08-26 04:00:00 +02:00
|
|
|
- return fluid.c().a((FluidType) this.b) ? VoxelShapes.b() : (VoxelShape) this.o.computeIfAbsent(iblockdata, (iblockdata) -> {
|
2018-07-15 02:00:00 +02:00
|
|
|
- Fluid fluid = iblockdata.s();
|
2018-08-26 04:00:00 +02:00
|
|
|
+ return fluid.c().a((FluidType) this.b) ? VoxelShapes.b() : (VoxelShape) this.o.computeIfAbsent(iblockdata, (iblockdata1) -> { // CraftBukkit - decompile errors
|
2018-07-15 02:00:00 +02:00
|
|
|
+ Fluid fluid1 = iblockdata1.s();
|
|
|
|
|
|
|
|
- return VoxelShapes.a(0.0D, 0.0D, 0.0D, 1.0D, (double) fluid.f(), 1.0D);
|
|
|
|
+ return VoxelShapes.a(0.0D, 0.0D, 0.0D, 1.0D, (double) fluid1.f(), 1.0D);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2018-08-26 04:00:00 +02:00
|
|
|
@@ -117,14 +117,20 @@
|
2018-07-15 02:00:00 +02:00
|
|
|
Fluid fluid = world.b(blockposition);
|
|
|
|
|
|
|
|
if (fluid.d()) {
|
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
|
|
|
}
|
|
|
|
|
2018-07-15 02:00:00 +02:00
|
|
|
if (fluid.f() >= 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
|
|
|
}
|
|
|
|
}
|