13
0
geforkt von Mirrors/Paper
Paper/nms-patches/BlockReed.patch
2018-12-06 10:00:00 +11:00

12 Zeilen
684 B
Diff

--- a/net/minecraft/server/BlockReed.java
+++ b/net/minecraft/server/BlockReed.java
@@ -29,7 +29,7 @@
int j = (Integer) iblockdata.get(BlockReed.AGE);
if (j == 15) {
- world.setTypeUpdate(blockposition.up(), this.getBlockData());
+ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, blockposition.up(), this.getBlockData()); // CraftBukkit
world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockReed.AGE, 0), 4);
} else {
world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockReed.AGE, j + 1), 4);