mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-09 20:30:28 +01:00
15 lines
776 B
Diff
15 lines
776 B
Diff
|
--- a/net/minecraft/server/BlockTallPlant.java
|
||
|
+++ b/net/minecraft/server/BlockTallPlant.java
|
||
|
@@ -48,6 +48,11 @@
|
||
|
|
||
|
protected void e(World world, BlockPosition blockposition, IBlockData iblockdata) {
|
||
|
if (!this.f(world, blockposition, iblockdata)) {
|
||
|
+ // CraftBukkit start
|
||
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPhysicsEvent(world, blockposition).isCancelled()) {
|
||
|
+ return;
|
||
|
+ }
|
||
|
+ // CraftBukkit end
|
||
|
boolean flag = iblockdata.get(BlockTallPlant.HALF) == BlockTallPlant.EnumTallPlantHalf.UPPER;
|
||
|
BlockPosition blockposition1 = flag ? blockposition : blockposition.up();
|
||
|
BlockPosition blockposition2 = flag ? blockposition.down() : blockposition;
|