Fix npe in post

This commit is contained in:
Daniel Mills 2020-11-06 00:54:35 -05:00
parent 4f6a676c32
commit 7322f1a9fb

View File

@ -253,7 +253,7 @@ public class PostMasterPatcher extends IrisPostBlockFilter
{ {
IrisBiome cave = gen.sampleTrueBiome(x, 1, z); IrisBiome cave = gen.sampleTrueBiome(x, 1, z);
if(cave.getInferredType().equals(InferredType.CAVE)) if(cave != null && cave.getInferredType().equals(InferredType.CAVE))
{ {
for(CaveResult i : gen.getCaves(x, z)) for(CaveResult i : gen.getCaves(x, z))
{ {