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:
parent
7e4d2c9b28
commit
13ca691f5d
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user