mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-28 19:22:50 +01:00
BlockSpreadEvent for Kelp
This commit is contained in:
parent
6cf60193b0
commit
3037eb3e7c
1 changed files with 11 additions and 0 deletions
11
nms-patches/BlockKelp.patch
Normal file
11
nms-patches/BlockKelp.patch
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue