From 34e042c945cbc6a4224b7488c69081afb3716bf4 Mon Sep 17 00:00:00 2001 From: Pavel Braginskiy Date: Mon, 7 Oct 2024 16:21:11 -0700 Subject: [PATCH] Save patchwork armor with right tech level --- megamek/src/megamek/common/Mek.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/megamek/src/megamek/common/Mek.java b/megamek/src/megamek/common/Mek.java index c1f2beacccc..2bc8fc6b00b 100644 --- a/megamek/src/megamek/common/Mek.java +++ b/megamek/src/megamek/common/Mek.java @@ -4258,7 +4258,6 @@ public boolean isLocationDeadly(Coords c) { /** * Get an '.mtf' file representation of the Mek. This string can be * directly written to disk as a file and later loaded by the MtfFile class. - * Known missing level 3 features: mixed tech, laser heatsinks */ public String getMtf() { StringBuilder sb = new StringBuilder(); @@ -4450,7 +4449,7 @@ public String getMtf() { } sb.append(getLocationAbbr(element)).append(" ").append(MtfFile.ARMOR); if (hasPatchworkArmor()) { - sb.append(EquipmentType.getArmorTypeName(getArmorType(element), isClan())) + sb.append(EquipmentType.getArmorTypeName(getArmorType(element), TechConstants.isClan(getArmorTechLevel(element)))) .append('(').append(TechConstants.getTechName(getArmorTechLevel(element))) .append("):"); }