1
0
mirror of https://github.com/cabaletta/baritone synced 2025-02-23 07:37:01 +00:00

Merge pull request #4017 from babbaj/elytra

simplify null check
This commit is contained in:
Brady Hahn 2023-06-22 11:40:08 -05:00 committed by GitHub
commit a90e720956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,12 +123,10 @@ public final class ElytraBehavior extends Behavior implements IElytraBehavior, H
})
.whenComplete((result, ex) -> {
this.recalculating = false;
if (ex != null) {
if (ex instanceof PathCalculationException) {
logDirect("Failed to compute path to destination");
} else {
logUnhandledException(ex);
}
if (ex instanceof PathCalculationException) {
logDirect("Failed to compute path to destination");
} else if (ex != null) {
logUnhandledException(ex);
}
});
}