geforkt von Mirrors/Paper
SPIGOT-7506: SculkBloomEvent.getBlock() world is null
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
9713b3f255
Commit
e12eaccce2
@ -19,7 +19,7 @@
|
|||||||
private final int additionalDecayRate;
|
private final int additionalDecayRate;
|
||||||
private List<SculkSpreader.a> cursors = new ArrayList();
|
private List<SculkSpreader.a> cursors = new ArrayList();
|
||||||
private static final Logger LOGGER = LogUtils.getLogger();
|
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) {
|
public SculkSpreader(boolean flag, TagKey<Block> tagkey, int i, int j, int k, int l) {
|
||||||
this.isWorldGeneration = flag;
|
this.isWorldGeneration = flag;
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
this.catalystListener.sculkSpreader.load(nbttagcompound);
|
this.catalystListener.sculkSpreader.load(nbttagcompound);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -60,6 +64,7 @@
|
@@ -60,11 +64,13 @@
|
||||||
final SculkSpreader sculkSpreader;
|
final SculkSpreader sculkSpreader;
|
||||||
private final IBlockData blockState;
|
private final IBlockData blockState;
|
||||||
private final PositionSource positionSource;
|
private final PositionSource positionSource;
|
||||||
@ -27,3 +27,9 @@
|
|||||||
|
|
||||||
public CatalystListener(IBlockData iblockdata, PositionSource positionsource) {
|
public CatalystListener(IBlockData iblockdata, PositionSource positionsource) {
|
||||||
this.blockState = iblockdata;
|
this.blockState = iblockdata;
|
||||||
|
this.positionSource = positionsource;
|
||||||
|
this.sculkSpreader = SculkSpreader.createLevelSpreader();
|
||||||
|
+ this.sculkSpreader.level = level; // CraftBukkit
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren