mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-18 06:41:08 +00:00
Prevent NPE with getting compound (may not exist)
This commit is contained in:
@@ -32,7 +32,7 @@ import java.util.Random;
|
|||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
|
|
||||||
public class EngineCompositeGenerator extends ChunkGenerator implements IrisAccess {
|
public class EngineCompositeGenerator extends ChunkGenerator implements IrisAccess {
|
||||||
private EngineCompound compound;
|
private EngineCompound compound = null;
|
||||||
private final AtomicBoolean initialized;
|
private final AtomicBoolean initialized;
|
||||||
private final String dimensionQuery;
|
private final String dimensionQuery;
|
||||||
private final boolean production;
|
private final boolean production;
|
||||||
@@ -608,6 +608,9 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IrisDataManager getData() {
|
public IrisDataManager getData() {
|
||||||
|
if (getCompound() == null){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return getComposite().getData();
|
return getComposite().getData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user