mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-18 06:41:08 +00:00
Fix poss null
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user