mirror of https://github.com/cabaletta/baritone
simplify null check
This commit is contained in:
parent
47dc0f9b94
commit
535fd17a42
|
@ -123,12 +123,10 @@ public final class ElytraBehavior extends Behavior implements IElytraBehavior, H
|
||||||
})
|
})
|
||||||
.whenComplete((result, ex) -> {
|
.whenComplete((result, ex) -> {
|
||||||
this.recalculating = false;
|
this.recalculating = false;
|
||||||
if (ex != null) {
|
if (ex instanceof PathCalculationException) {
|
||||||
if (ex instanceof PathCalculationException) {
|
logDirect("Failed to compute path to destination");
|
||||||
logDirect("Failed to compute path to destination");
|
} else if (ex != null) {
|
||||||
} else {
|
logUnhandledException(ex);
|
||||||
logUnhandledException(ex);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue