mirror of https://github.com/cabaletta/baritone
add null check to resetState
This commit is contained in:
parent
1e0dce8f41
commit
f14bb282f0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue