From 2d9ed61f7fec67a473d9474df9eac38d00e851d4 Mon Sep 17 00:00:00 2001 From: HammerGS Date: Sat, 23 Nov 2024 13:16:40 -0700 Subject: [PATCH] Fixing Version Display to match 2 decimals. --- megamek/src/megamek/Version.java | 10 +++++----- megamek/src/megamek/common/MiscType.java | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/megamek/src/megamek/Version.java b/megamek/src/megamek/Version.java index d422ce849b6..b065b72649f 100644 --- a/megamek/src/megamek/Version.java +++ b/megamek/src/megamek/Version.java @@ -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" : "")); } } diff --git a/megamek/src/megamek/common/MiscType.java b/megamek/src/megamek/common/MiscType.java index b65a155f412..427692acb2a 100644 --- a/megamek/src/megamek/common/MiscType.java +++ b/megamek/src/megamek/common/MiscType.java @@ -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;