From 7322f1a9fbfb39f5e9f539f270c617e91e7c72c0 Mon Sep 17 00:00:00 2001 From: Daniel Mills Date: Fri, 6 Nov 2020 00:54:35 -0500 Subject: [PATCH] Fix npe in post --- src/main/java/com/volmit/iris/gen/post/PostMasterPatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {