mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 10:12:53 +00:00
Fix poss null
This commit is contained in:
parent
af76d937e1
commit
195bbf4652
@ -373,12 +373,15 @@ 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;
|
|
||||||
for (IrisPosition pos : poss) {
|
if(poss != null)
|
||||||
if (x == pos.getX() >> 4 && z == pos.getZ() >> 4) {
|
{
|
||||||
IrisJigsawStructure structure = getData().getJigsawStructureLoader().load(getEngine().getDimension().getStronghold());
|
for (IrisPosition pos : poss) {
|
||||||
placeAfter.addAll(placeStructure(pos, structure, rng));
|
if (x == pos.getX() >> 4 && z == pos.getZ() >> 4) {
|
||||||
placed = true;
|
IrisJigsawStructure structure = getData().getJigsawStructureLoader().load(getEngine().getDimension().getStronghold());
|
||||||
|
placeAfter.addAll(placeStructure(pos, structure, rng));
|
||||||
|
placed = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user