aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/og/net/minecraft/world/level/block/BlockTallPlant.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/og/net/minecraft/world/level/block/BlockTallPlant.patch')
-rw-r--r--patch-remap/og/net/minecraft/world/level/block/BlockTallPlant.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/level/block/BlockTallPlant.patch b/patch-remap/og/net/minecraft/world/level/block/BlockTallPlant.patch
new file mode 100644
index 0000000000..975c30491b
--- /dev/null
+++ b/patch-remap/og/net/minecraft/world/level/block/BlockTallPlant.patch
@@ -0,0 +1,14 @@
+--- a/net/minecraft/world/level/block/BlockTallPlant.java
++++ b/net/minecraft/world/level/block/BlockTallPlant.java
+@@ -101,6 +101,11 @@
+ }
+
+ protected static void preventDropFromBottomPart(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.getValue(BlockTallPlant.HALF);
+
+ if (blockpropertydoubleblockhalf == BlockPropertyDoubleBlockHalf.UPPER) {