don't crash when Auto mine does weird things

This commit is contained in:
Leijurv
2018-11-27 10:23:26 -08:00
parent a907746f53
commit 73628f09c1
@@ -89,7 +89,7 @@ public final class MineBehavior extends Behavior implements IMineBehavior, Helpe
}
private void updateGoal() {
if (mining == null) {
if (mining == null || world() == null || player() == null) {
return;
}
List<BlockPos> locs = knownOreLocations;
@@ -124,7 +124,7 @@ public final class MineBehavior extends Behavior implements IMineBehavior, Helpe
}
private void rescan() {
if (mining == null) {
if (mining == null || world() == null || player() == null) {
return;
}
if (Baritone.settings().legitMine.get()) {