mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 08:17:44 +01:00
SPIGOT-7506: SculkBloomEvent.getBlock() world is null
By: md_5 <git@md-5.net>
This commit is contained in:
parent
9713b3f255
commit
e12eaccce2
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user