2022-06-11 05:20:38 +02:00
|
|
|
--- a/net/minecraft/world/level/block/SculkBlock.java
|
|
|
|
+++ b/net/minecraft/world/level/block/SculkBlock.java
|
|
|
|
@@ -35,8 +35,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
|
2022-06-14 13:21:46 +02:00
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockSpreadEvent(generatoraccess, blockposition, blockposition2, iblockdata, 3)) {
|
2022-06-11 05:20:38 +02:00
|
|
|
+ generatoraccess.playSound((EntityHuman) null, blockposition1, iblockdata.getSoundType().getPlaceSound(), SoundCategory.BLOCKS, 1.0F, 1.0F);
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|
|
|
|
|
|
|
|
return Math.max(0, i - j);
|