summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockKelp.patch
blob: b73d089ab3c1021f9f6ab95f6c921a2b4f66fc04 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/BlockKelp.java
+++ b/net/minecraft/server/BlockKelp.java
@@ -52,7 +52,7 @@
             IBlockData iblockdata1 = world.getType(blockposition1);
 
             if (iblockdata1.getBlock() == Blocks.WATER && (Integer) iblockdata.get(BlockKelp.a) < 25 && random.nextDouble() < 0.14D) {
-                world.setTypeUpdate(blockposition1, (IBlockData) iblockdata.a((IBlockState) BlockKelp.a));
+                org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockSpreadEvent(world, blockposition, blockposition1, (IBlockData) iblockdata.a((IBlockState) BlockKelp.a)); // CraftBukkit
             }
 
         }