add null check to resetState

This commit is contained in:
Babbaj 2023-07-24 04:41:19 -04:00
parent 1e0dce8f41
commit f14bb282f0
No known key found for this signature in database
GPG Key ID: F044309848A07CAC
1 changed files with 4 additions and 2 deletions

View File

@ -81,8 +81,10 @@ public class ElytraProcess extends BaritoneProcessHelper implements IBaritonePro
public void resetState() {
BlockPos destination = this.currentDestination();
this.onLostControl();
this.pathTo(destination);
this.repackChunks();
if (destination != null) {
this.pathTo(destination);
this.repackChunks();
}
}
@Override