From 13ca691f5d1922571cfabaf6198b9b0f59500ade Mon Sep 17 00:00:00 2001 From: ZacSharp <68165024+ZacSharp@users.noreply.github.com> Date: Wed, 16 Sep 2020 17:41:46 +0200 Subject: [PATCH] make `#wp goto` behave like `#goto` It now is a combined `#wp goal` and `#path` just like `#goto` is `#goal` and `#path` --- .../java/baritone/command/defaults/WaypointsCommand.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/baritone/command/defaults/WaypointsCommand.java b/src/main/java/baritone/command/defaults/WaypointsCommand.java index 62c74212..fb15b053 100644 --- a/src/main/java/baritone/command/defaults/WaypointsCommand.java +++ b/src/main/java/baritone/command/defaults/WaypointsCommand.java @@ -235,6 +235,10 @@ public class WaypointsCommand extends Command { Goal goal = new GoalBlock(waypoint.getLocation()); baritone.getCustomGoalProcess().setGoal(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"), INFO("info", "show", "i"), DELETE("delete", "d"), - GOAL("goal", "goto", "g"); + GOAL("goal", "g"), + GOTO("goto"); private final String[] names; Action(String... names) {