minor code improvements
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user