Skip to content

Commit

Permalink
backport: "/flas" alias
Browse files Browse the repository at this point in the history
Signed-off-by: Octol1ttle <[email protected]>
  • Loading branch information
Octol1ttle committed Feb 14, 2024
1 parent b1e491d commit 8eacbde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/torocraft/flighthud/FlightHud.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private static void setupKeycCode() {
private static void setupCommand() {
ClientCommandRegistrationCallback.EVENT.register((dispatcher, registryAccess) -> {

LiteralCommandNode<FabricClientCommandSource> node = dispatcher.register(literal("flightassistant")
LiteralCommandNode<FabricClientCommandSource> node = dispatcher.register(literal(FlightHud.MODID)
.then(literal("toggle").executes(new SwitchDisplayModeCommand()))
.then(literal("nav")
.then(argument("destinationX", IntegerArgumentType.integer(-30_000_000, 30_000_000))
Expand All @@ -156,6 +156,7 @@ private static void setupCommand() {
.executes(new AltitudeSelectCommand()))
.then(literal("reset")
.executes(new AltitudeResetCommand()))));
dispatcher.register(literal("flas").redirect(node));
dispatcher.register(literal("fhud").redirect(node));
dispatcher.register(literal("fh").redirect(node));
});
Expand Down

0 comments on commit 8eacbde

Please sign in to comment.