Skip to content

Commit

Permalink
Fixing Version Display to match 2 decimals.
Browse files Browse the repository at this point in the history
  • Loading branch information
HammerGS committed Nov 23, 2024
1 parent 8b207fd commit 2d9ed61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions megamek/src/megamek/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,10 @@ public void fillFromText(final @Nullable String text) {
@Override
public String toString() {
return String.format(
"%d.%d.%d%s",
getRelease(),
getMajor(),
getMinor(),
(isSnapshot() ? "-SNAPSHOT" : ""));
"%d.%02d.%02d%s",
getRelease(),
getMajor(),
getMinor(),
(isSnapshot() ? "-SNAPSHOT" : ""));
}
}
1 change: 1 addition & 0 deletions megamek/src/megamek/common/MiscType.java
Original file line number Diff line number Diff line change
Expand Up @@ -7130,6 +7130,7 @@ public static MiscType createMASH() {
misc.name = "MASH Equipment";
misc.setInternalName(misc.name);
misc.addLookupName("MASH Core Component");
misc.addLookupName("MASH Operation Theater");
misc.tonnage = TONNAGE_VARIABLE;
misc.criticals = 1;
misc.cost = COST_VARIABLE;
Expand Down

0 comments on commit 2d9ed61

Please sign in to comment.