dont crash when exiting a world
This commit is contained in:
parent
6741666c24
commit
6e97fe2210
@ -45,6 +45,9 @@ public class BackfillProcess extends BaritoneProcessHelper {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isActive() {
|
public boolean isActive() {
|
||||||
|
if (ctx.player() == null || ctx.world() == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (!Baritone.settings().backfill.value) {
|
if (!Baritone.settings().backfill.value) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user