mirror of https://github.com/cabaletta/baritone
Remove unnecessary `Baritone` casts
This commit is contained in:
parent
0886f176b3
commit
1257a0128c
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue