From 6e97fe22105ae744303516987613820ceab5bf52 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Fri, 12 Apr 2019 21:48:02 -0700 Subject: [PATCH] dont crash when exiting a world --- src/main/java/baritone/process/BackfillProcess.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/baritone/process/BackfillProcess.java b/src/main/java/baritone/process/BackfillProcess.java index 193204ae..e2bb70da 100644 --- a/src/main/java/baritone/process/BackfillProcess.java +++ b/src/main/java/baritone/process/BackfillProcess.java @@ -45,6 +45,9 @@ public class BackfillProcess extends BaritoneProcessHelper { @Override public boolean isActive() { + if (ctx.player() == null || ctx.world() == null) { + return false; + } if (!Baritone.settings().backfill.value) { return false; }