Fix poss null

This commit is contained in:
Daniel Mills 2021-07-04 22:26:00 -04:00
parent af76d937e1
commit 195bbf4652

View File

@ -373,12 +373,15 @@ public interface EngineParallaxManager extends DataProvider, IObjectPlacer {
if(getEngine().getDimension().getStronghold() != null)
{
List<IrisPosition> poss = getEngine().getCompound().getStrongholdPositions();
poss = poss == null ? new KList<>() : null;
for (IrisPosition pos : poss) {
if (x == pos.getX() >> 4 && z == pos.getZ() >> 4) {
IrisJigsawStructure structure = getData().getJigsawStructureLoader().load(getEngine().getDimension().getStronghold());
placeAfter.addAll(placeStructure(pos, structure, rng));
placed = true;
if(poss != null)
{
for (IrisPosition pos : poss) {
if (x == pos.getX() >> 4 && z == pos.getZ() >> 4) {
IrisJigsawStructure structure = getData().getJigsawStructureLoader().load(getEngine().getDimension().getStronghold());
placeAfter.addAll(placeStructure(pos, structure, rng));
placed = true;
}
}
}
}