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,7 +373,9 @@ public interface EngineParallaxManager extends DataProvider, IObjectPlacer {
if(getEngine().getDimension().getStronghold() != null) if(getEngine().getDimension().getStronghold() != null)
{ {
List<IrisPosition> poss = getEngine().getCompound().getStrongholdPositions(); List<IrisPosition> poss = getEngine().getCompound().getStrongholdPositions();
poss = poss == null ? new KList<>() : null;
if(poss != null)
{
for (IrisPosition pos : poss) { for (IrisPosition pos : poss) {
if (x == pos.getX() >> 4 && z == pos.getZ() >> 4) { if (x == pos.getX() >> 4 && z == pos.getZ() >> 4) {
IrisJigsawStructure structure = getData().getJigsawStructureLoader().load(getEngine().getDimension().getStronghold()); IrisJigsawStructure structure = getData().getJigsawStructureLoader().load(getEngine().getDimension().getStronghold());
@ -382,6 +384,7 @@ public interface EngineParallaxManager extends DataProvider, IObjectPlacer {
} }
} }
} }
}
if(!placed) if(!placed)
{ {