make `#wp goto` behave like `#goto`

It now is a combined `#wp goal` and `#path` just like `#goto` is `#goal` and `#path`
This commit is contained in:
ZacSharp 2020-09-16 17:41:46 +02:00
parent 7e4d2c9b28
commit 13ca691f5d
No known key found for this signature in database
GPG Key ID: 9453647B005083A3
1 changed files with 6 additions and 1 deletions

View File

@ -235,6 +235,10 @@ public class WaypointsCommand extends Command {
Goal goal = new GoalBlock(waypoint.getLocation()); Goal goal = new GoalBlock(waypoint.getLocation());
baritone.getCustomGoalProcess().setGoal(goal); baritone.getCustomGoalProcess().setGoal(goal);
logDirect(String.format("Goal: %s", goal)); logDirect(String.format("Goal: %s", goal));
} else if (action == Action.GOTO) {
Goal goal = new GoalBlock(waypoint.getLocation());
baritone.getCustomGoalProcess().setGoalAndPath(goal);
logDirect(String.format("Going to: %s", goal));
} }
} }
} }
@ -302,7 +306,8 @@ public class WaypointsCommand extends Command {
SAVE("save", "s"), SAVE("save", "s"),
INFO("info", "show", "i"), INFO("info", "show", "i"),
DELETE("delete", "d"), DELETE("delete", "d"),
GOAL("goal", "goto", "g"); GOAL("goal", "g"),
GOTO("goto");
private final String[] names; private final String[] names;
Action(String... names) { Action(String... names) {