SPIGOT-7060: SCULK and SCULK_VEIN BlockSpreadEvents do not reference the correct source

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2022-06-14 21:21:46 +10:00
parent 8a00d6f5d1
commit 0d983f9b9a
2 changed files with 17 additions and 3 deletions

View File

@@ -7,7 +7,7 @@
- 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, blockposition1, blockposition2, iblockdata, 3)) {
+ 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