From e0e920bfe0f39b317fc186fb5a74c93d6c8bd976 Mon Sep 17 00:00:00 2001 From: CocoTheOwner Date: Thu, 29 Jul 2021 11:28:25 +0200 Subject: [PATCH] return, dumb --- src/main/java/com/volmit/iris/core/TreeManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/volmit/iris/core/TreeManager.java b/src/main/java/com/volmit/iris/core/TreeManager.java index cb4fa89ae..c3d1a70df 100644 --- a/src/main/java/com/volmit/iris/core/TreeManager.java +++ b/src/main/java/com/volmit/iris/core/TreeManager.java @@ -86,11 +86,13 @@ public class TreeManager implements Listener { if (worldAccess.getCompound() == null) { Iris.debug(this.getClass().getName() + " passed off to vanilla because dimension compound is null"); Iris.reportError(new NullPointerException(event.getWorld().getName() + " is accessible but does not have compound")); + return; } if (worldAccess.getCompound().getRootDimension() == null) { Iris.debug(this.getClass().getName() + " passed off to vanilla because compound's root dimension is null"); Iris.reportError(new NullPointerException(event.getWorld().getName() + " is accessible & has compound but has no root dimension")); + return; } if (!worldAccess.getCompound().getRootDimension().getTreeSettings().isEnabled()) {