diff options
Diffstat (limited to 'patch-remap/og/net/minecraft/world/level/block/SculkBlock.patch')
-rw-r--r-- | patch-remap/og/net/minecraft/world/level/block/SculkBlock.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/level/block/SculkBlock.patch b/patch-remap/og/net/minecraft/world/level/block/SculkBlock.patch new file mode 100644 index 0000000000..e6fd17eed5 --- /dev/null +++ b/patch-remap/og/net/minecraft/world/level/block/SculkBlock.patch @@ -0,0 +1,16 @@ +--- a/net/minecraft/world/level/block/SculkBlock.java ++++ b/net/minecraft/world/level/block/SculkBlock.java +@@ -43,8 +43,11 @@ + BlockPosition blockposition2 = blockposition1.above(); + IBlockData iblockdata = this.getRandomGrowthState(generatoraccess, blockposition2, randomsource, sculkspreader.isWorldGeneration()); + +- generatoraccess.setBlock(blockposition2, iblockdata, 3); +- generatoraccess.playSound((EntityHuman) null, blockposition1, iblockdata.getSoundType().getPlaceSound(), SoundCategory.BLOCKS, 1.0F, 1.0F); ++ // CraftBukkit start - Call BlockSpreadEvent ++ if (org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockSpreadEvent(generatoraccess, blockposition, blockposition2, iblockdata, 3)) { ++ generatoraccess.playSound((EntityHuman) null, blockposition1, iblockdata.getSoundType().getPlaceSound(), SoundCategory.BLOCKS, 1.0F, 1.0F); ++ } ++ // CraftBukkit end + } + + return Math.max(0, i - j); |