mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 18:27:41 +01:00
0d983f9b9a
By: md_5 <git@md-5.net>
17 lines
1.1 KiB
Diff
17 lines
1.1 KiB
Diff
--- 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
|
|
+ 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);
|