2018-07-31 02:17:43 +02:00
|
|
|
--- a/net/minecraft/server/BlockCoralFanWall.java
|
|
|
|
+++ b/net/minecraft/server/BlockCoralFanWall.java
|
2019-04-23 04:00:00 +02:00
|
|
|
@@ -19,6 +19,11 @@
|
|
|
|
@Override
|
|
|
|
public void tick(IBlockData iblockdata, World world, BlockPosition blockposition, Random random) {
|
2018-07-31 02:17:43 +02:00
|
|
|
if (!b_(iblockdata, world, blockposition)) {
|
|
|
|
+ // CraftBukkit start
|
2018-12-06 00:00:00 +01:00
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world, blockposition, this.c.getBlockData().set(BlockCoralFanWall.b, false).set(BlockCoralFanWall.a, iblockdata.get(BlockCoralFanWall.a))).isCancelled()) {
|
2018-07-31 02:17:43 +02:00
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2018-12-06 00:00:00 +01:00
|
|
|
world.setTypeAndData(blockposition, (IBlockData) ((IBlockData) this.c.getBlockData().set(BlockCoralFanWall.b, false)).set(BlockCoralFanWall.a, iblockdata.get(BlockCoralFanWall.a)), 2);
|
2018-07-31 02:17:43 +02:00
|
|
|
}
|
|
|
|
|