diff options
author | md_5 <git@md-5.net> | 2018-09-03 08:43:48 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-09-03 08:43:48 +1000 |
commit | 3037eb3e7caa6941b343c31dc72255132ad78f50 (patch) | |
tree | ad1550d922276e7731117fe350c91aedc8e4bb07 | |
parent | 6cf60193b06e404403236fa38ecbcd4feb9aab11 (diff) | |
download | craftbukkit-3037eb3e7caa6941b343c31dc72255132ad78f50.tar craftbukkit-3037eb3e7caa6941b343c31dc72255132ad78f50.tar.gz craftbukkit-3037eb3e7caa6941b343c31dc72255132ad78f50.tar.lz craftbukkit-3037eb3e7caa6941b343c31dc72255132ad78f50.tar.xz craftbukkit-3037eb3e7caa6941b343c31dc72255132ad78f50.zip |
BlockSpreadEvent for Kelp
-rw-r--r-- | nms-patches/BlockKelp.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nms-patches/BlockKelp.patch b/nms-patches/BlockKelp.patch new file mode 100644 index 00000000..b014e434 --- /dev/null +++ b/nms-patches/BlockKelp.patch @@ -0,0 +1,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)).intValue() < 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 + } + + } |