mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 10:12:53 +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;
|
||||
|
||||
public class EngineCompositeGenerator extends ChunkGenerator implements IrisAccess {
|
||||
private EngineCompound compound;
|
||||
private EngineCompound compound = null;
|
||||
private final AtomicBoolean initialized;
|
||||
private final String dimensionQuery;
|
||||
private final boolean production;
|
||||
@ -608,6 +608,9 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
|
||||
|
||||
@Override
|
||||
public IrisDataManager getData() {
|
||||
if (getCompound() == null){
|
||||
return null;
|
||||
}
|
||||
return getComposite().getData();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user