Skip to content

Commit

Permalink
change rocket thrust text formatting to be more efficient
Browse files Browse the repository at this point in the history
  • Loading branch information
screret committed Apr 14, 2024
1 parent 1b9febe commit 1c4849e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- fixed space suits not being fillable with oxygen
- fixed rockets not being fillable with fuel
- fixed fuel tank builder not building a fuel tank, but a rocket motor
-
- kevlar (para-aramid) is now obtainable thanks to brine chain

### CHANGES:
- removed fluid loader, use a tank/drum instead for filling spacesuits
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -899,8 +899,7 @@ public Component getDisplayThrust() {
} else {
style = ChatFormatting.GREEN;
}
var thrustComponent = Component.literal(String.format("%.1f", thrust)).withStyle(style);
return Component.translatable("menu.gcyr.rocket.thrust", style + thrustComponent.getString() + ChatFormatting.RESET);
return Component.translatable("menu.gcyr.rocket.thrust", style + String.format("%.1f", thrust) + ChatFormatting.RESET);
}

public double getRocketSpeed() {
Expand Down

0 comments on commit 1c4849e

Please sign in to comment.