Remove unnecessary `Baritone` casts

This commit is contained in:
Brady 2023-06-18 21:46:56 -05:00
parent 0886f176b3
commit 1257a0128c
No known key found for this signature in database
GPG Key ID: 73A788379A197567
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -181,7 +181,7 @@ public class ExecutionControlCommands {
paused[0] = false;
}
baritone.getPathingBehavior().cancelEverything();
((Baritone) baritone).getElytraBehavior().cancel();
baritone.getElytraBehavior().cancel();
logDirect("ok canceled");
}

View File

@ -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");
}