diff --git a/src/main/java/com/volmit/iris/gen/post/PostMasterPatcher.java b/src/main/java/com/volmit/iris/gen/post/PostMasterPatcher.java index 7a56579cf..8f542fb3e 100644 --- a/src/main/java/com/volmit/iris/gen/post/PostMasterPatcher.java +++ b/src/main/java/com/volmit/iris/gen/post/PostMasterPatcher.java @@ -253,7 +253,7 @@ public class PostMasterPatcher extends IrisPostBlockFilter { 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)) {