minor code improvements

This commit is contained in:
Babbaj
2023-07-18 00:02:23 -04:00
parent ccd80dfc8f
commit f4996137a3
3 changed files with 2 additions and 7 deletions

View File

@@ -125,7 +125,6 @@ public class Baritone implements IBaritone {
this.farmProcess = this.registerProcess(FarmProcess::new);
this.inventoryPauserProcess = this.registerProcess(InventoryPauserProcess::new);
this.elytraProcess = this.registerProcess(ElytraProcess::create);
this.registerProcess(BackfillProcess::new);
}

View File

@@ -85,10 +85,7 @@ public class ElytraCommand extends Command {
final String action = args.getString();
switch (action) {
case "reset": {
BlockPos destination = elytra.currentDestination();
elytra.onLostControl();
elytra.pathTo(destination);
elytra.repackChunks();
elytra.resetState();
logDirect("Reset state but still flying to same goal");
break;
}

View File

@@ -47,7 +47,6 @@ public class ElytraProcess extends BaritoneProcessHelper implements IBaritonePro
public State state;
private Goal goal;
private LegacyElytraBehavior behavior;
private boolean skippedThisTick = false;
private ElytraProcess(Baritone baritone) {
super(baritone);
@@ -247,7 +246,7 @@ public class ElytraProcess extends BaritoneProcessHelper implements IBaritonePro
FLYING("Flying"),
LANDING("Landing");
public String description;
public final String description;
State(String desc) {
this.description = desc;