summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockReed.patch
blob: f7713a700f6466d2cc809b5430a884ac8c30774a (plain)
1
2
3
4
5
6
7
8
9
10
11
--- 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);