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,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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user