Prevent NPE when getting Engine

This commit is contained in:
CocoTheOwner committed 2021-02-26 10:13:32 +01:00
1 parent cec67484e5
commit abfba739a8
1 file changed
+6 -1
@@ -769,7 +769,12 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
@Override
public EngineTarget getTarget() {
return getComposite().getEngine(0).getTarget();
try {
return getComposite().getEngine(0).getTarget();
} catch (NullPointerException e){
Iris.info("Failed to get composite engine. Please re-create the world in case you notice issues");
return null;
}
}
@Override