Skip to content

Commit

Permalink
fix: update some forgotten translation keys
Browse files Browse the repository at this point in the history
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
  • Loading branch information
Octol1ttle committed May 14, 2024
1 parent 8544400 commit f60c84f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static int execute(CommandContext<FabricClientCommandSource> context, Way
WaypointUtil.throwIfFirstLanding(plan, waypoint);

plan.add(waypoint);
context.getSource().sendFeedback(Text.translatable("commands.flightassistant.waypoint_created", plan.size() - 1, plan.size()));
context.getSource().sendFeedback(Text.translatable("commands.flightassistant.waypoint.created", plan.size() - 1, plan.size()));
return 0;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static int execute(CommandContext<FabricClientCommandSource> context) {
landing.formatMinimums());
} else {
feedback = Text.translatable(
"commands.flightassistant.waypoint_info.normal",
"commands.flightassistant.waypoint_info",
i,
(int) waypoint.targetPosition().x,
(int) waypoint.targetPosition().y,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void render(DrawContext context, TextRenderer textRenderer) {
int safeLevel = data.groundLevel == data.voidLevel() ? data.voidLevel() + 16 : MathHelper.ceil(data.groundLevel);
Color color = getAltitudeColor(safeLevel, data.altitude());

DrawHelper.drawText(textRenderer, context, Text.translatable(data.groundLevel == data.voidLevel() ? "flightassistant.void_level" : "flightassistant.ground_level"), xAltText - 10, bottom, color);
DrawHelper.drawText(textRenderer, context, Text.translatable(data.groundLevel == data.voidLevel() ? "short.flightassistant.void_level" : "short.flightassistant.ground_level"), xAltText - 10, bottom, color);
DrawHelper.drawText(textRenderer, context, DrawHelper.asText("%d", MathHelper.floor(data.heightAboveGround())), xAltText, bottom, color);
DrawHelper.drawBorder(context, xAltText - 2, bottom - 2, 28, color);
}
Expand Down

0 comments on commit f60c84f

Please sign in to comment.