add null check to resetState

This commit is contained in:
Babbaj
2023-07-24 04:41:19 -04:00
parent 1e0dce8f41
commit f14bb282f0

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