diff --git a/src/main/java/xaeroplus/mixin/client/MixinGuiMap.java b/src/main/java/xaeroplus/mixin/client/MixinGuiMap.java index 51dba0f3..8a17e74c 100644 --- a/src/main/java/xaeroplus/mixin/client/MixinGuiMap.java +++ b/src/main/java/xaeroplus/mixin/client/MixinGuiMap.java @@ -70,6 +70,7 @@ import java.util.List; import java.util.stream.Collectors; +import static java.util.Arrays.asList; import static java.util.Objects.isNull; import static net.minecraft.world.World.*; import static xaero.map.gui.GuiMap.*; @@ -1924,18 +1925,20 @@ public void onInputPress(final int code, final int scanCode, final int modifiers public void getRightClickOptionsInject(final CallbackInfoReturnable> cir) { if (BaritoneHelper.isBaritonePresent()) { final ArrayList options = cir.getReturnValue(); - options.add(new RightClickOption("Baritone Goal Here", options.size(), this) { - @Override - public void onAction(Screen screen) { - BaritoneAPI.getProvider().getPrimaryBaritone().getCustomGoalProcess().setGoal(new GoalXZ(rightClickX, rightClickZ)); - } - }); - options.add(new RightClickOption("Baritone Path Here", options.size(), this) { - @Override - public void onAction(Screen screen) { - BaritoneAPI.getProvider().getPrimaryBaritone().getCustomGoalProcess().setGoalAndPath(new GoalXZ(rightClickX, rightClickZ)); - } - }); + options.addAll(3, asList( + new RightClickOption("Baritone Goal Here", options.size(), this) { + @Override + public void onAction(Screen screen) { + BaritoneAPI.getProvider().getPrimaryBaritone().getCustomGoalProcess().setGoal(new GoalXZ(rightClickX, rightClickZ)); + } + }, + new RightClickOption("Baritone Path Here", options.size(), this) { + @Override + public void onAction(Screen screen) { + BaritoneAPI.getProvider().getPrimaryBaritone().getCustomGoalProcess().setGoalAndPath(new GoalXZ(rightClickX, rightClickZ)); + } + } + )); } }