Paper/nms-patches/BlockKelp.patch

12 lines
658 B
Diff
Raw Normal View History

2018-09-03 00:43:48 +02:00
--- a/net/minecraft/server/BlockKelp.java
+++ b/net/minecraft/server/BlockKelp.java
2019-12-10 23:00:00 +01:00
@@ -44,7 +44,7 @@
IBlockData iblockdata1 = worldserver.getType(blockposition1);
2018-09-03 00:43:48 +02:00
2018-12-06 00:00:00 +01:00
if (iblockdata1.getBlock() == Blocks.WATER && (Integer) iblockdata.get(BlockKelp.a) < 25 && random.nextDouble() < 0.14D) {
2019-12-10 23:00:00 +01:00
- worldserver.setTypeUpdate(blockposition1, (IBlockData) iblockdata.a((IBlockState) BlockKelp.a));
+ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockSpreadEvent(worldserver, blockposition, blockposition1, (IBlockData) iblockdata.a((IBlockState) BlockKelp.a)); // CraftBukkit
2018-09-03 00:43:48 +02:00
}
}