summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockNetherWart.patch
blob: 79e98882bf0e69df3c03bc0f878002c4b072595a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/net/minecraft/server/BlockNetherWart.java
+++ b/net/minecraft/server/BlockNetherWart.java
@@ -29,7 +29,8 @@
 
         if (i < 3 && random.nextInt(10) == 0) {
             iblockdata = iblockdata.set(BlockNetherWart.AGE, Integer.valueOf(i + 1));
-            world.setTypeAndData(blockposition, iblockdata, 2);
+            // world.setTypeAndData(blockposition, iblockdata, 2); // CraftBukkit
+            org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, blockposition.getX(), blockposition.getY(), blockposition.getZ(), this, toLegacyData(iblockdata)); // CraftBukkit
         }
 
         super.b(world, blockposition, iblockdata, random);