mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Prevent NPE with getting compound (may not exist)
This commit is contained in:
parent
d0a281c116
commit
aa90274cc2
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user