Remove unnecessary Baritone casts
This commit is contained in:
@@ -64,7 +64,7 @@ public class ElytraCommand extends Command {
|
||||
if (y <= 0 || y >= 128) {
|
||||
throw new CommandInvalidStateException("The y of the goal is not between 0 and 128");
|
||||
}
|
||||
((Baritone) baritone).getElytraBehavior().pathTo(new BlockPos(x, y, z));
|
||||
baritone.getElytraBehavior().pathTo(new BlockPos(x, y, z));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -181,7 +181,7 @@ public class ExecutionControlCommands {
|
||||
paused[0] = false;
|
||||
}
|
||||
baritone.getPathingBehavior().cancelEverything();
|
||||
((Baritone) baritone).getElytraBehavior().cancel();
|
||||
baritone.getElytraBehavior().cancel();
|
||||
logDirect("ok canceled");
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ public class ForceCancelCommand extends Command {
|
||||
IPathingBehavior pathingBehavior = baritone.getPathingBehavior();
|
||||
pathingBehavior.cancelEverything();
|
||||
pathingBehavior.forceCancel();
|
||||
((Baritone) baritone).getElytraBehavior().cancel();
|
||||
baritone.getElytraBehavior().cancel();
|
||||
logDirect("ok force canceled");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user