SPIGOT-7506: SculkBloomEvent.getBlock() world is null

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2023-10-20 18:49:03 +11:00
parent 9713b3f255
commit e12eaccce2
2 changed files with 8 additions and 2 deletions

View File

@ -19,7 +19,7 @@
private final int additionalDecayRate;
private List<SculkSpreader.a> cursors = new ArrayList();
private static final Logger LOGGER = LogUtils.getLogger();
+ World level; // CraftBukkit
+ public World level; // CraftBukkit
public SculkSpreader(boolean flag, TagKey<Block> tagkey, int i, int j, int k, int l) {
this.isWorldGeneration = flag;

View File

@ -19,7 +19,7 @@
this.catalystListener.sculkSpreader.load(nbttagcompound);
}
@@ -60,6 +64,7 @@
@@ -60,11 +64,13 @@
final SculkSpreader sculkSpreader;
private final IBlockData blockState;
private final PositionSource positionSource;
@ -27,3 +27,9 @@
public CatalystListener(IBlockData iblockdata, PositionSource positionsource) {
this.blockState = iblockdata;
this.positionSource = positionsource;
this.sculkSpreader = SculkSpreader.createLevelSpreader();
+ this.sculkSpreader.level = level; // CraftBukkit
}
@Override