2017-05-01 01:21:20 +02:00
|
|
|
--- a/net/minecraft/server/BlockTallPlant.java
|
|
|
|
+++ b/net/minecraft/server/BlockTallPlant.java
|
|
|
|
@@ -48,6 +48,11 @@
|
2018-07-15 02:00:00 +02:00
|
|
|
}
|
2017-05-01 01:21:20 +02:00
|
|
|
|
2018-07-15 02:00:00 +02:00
|
|
|
public void a(World world, BlockPosition blockposition, IBlockData iblockdata, EntityHuman entityhuman) {
|
|
|
|
+ // CraftBukkit start
|
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPhysicsEvent(world, blockposition).isCancelled()) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
BlockPropertyDoubleBlockHalf blockpropertydoubleblockhalf = (BlockPropertyDoubleBlockHalf) iblockdata.get(BlockTallPlant.HALF);
|
|
|
|
boolean flag = blockpropertydoubleblockhalf == BlockPropertyDoubleBlockHalf.LOWER;
|
|
|
|
BlockPosition blockposition1 = flag ? blockposition.up() : blockposition.down();
|