Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-21 05:50:05 +01:00
15 Zeilen
676 B
Diff
15 Zeilen
676 B
Diff
--- a/net/minecraft/server/BlockTallPlant.java
|
|
+++ b/net/minecraft/server/BlockTallPlant.java
|
|
@@ -66,6 +66,11 @@
|
|
}
|
|
|
|
protected static void b(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);
|
|
|
|
if (blockpropertydoubleblockhalf == BlockPropertyDoubleBlockHalf.UPPER) {
|