Skip to content

Commit

Permalink
Added <50.01 Compatibility Handler for Removed Clan Tech Knowledge SPA
Browse files Browse the repository at this point in the history
Added a check to exclude the "clan_tech_knowledge" key from being written to the XML file. This ensures compatibility with versions before 50.01.
  • Loading branch information
IllianiCBT committed Sep 26, 2024
1 parent 876131a commit c74b5ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MekHQ/src/mekhq/campaign/Campaign.java
Original file line number Diff line number Diff line change
Expand Up @@ -5290,6 +5290,11 @@ public void writeToXML(final PrintWriter pw) {
MHQXMLUtility.writeSimpleXMLCloseTag(pw, --indent, "skillTypes");
MHQXMLUtility.writeSimpleXMLOpenTag(pw, indent++, "specialAbilities");
for (String key : SpecialAbility.getSpecialAbilities().keySet()) {
// <50.01 compatibility handler
if (Objects.equals(key, "clan_tech_knowledge")) {
continue;
}

SpecialAbility.getAbility(key).writeToXML(pw, indent);
}
MHQXMLUtility.writeSimpleXMLCloseTag(pw, --indent, "specialAbilities");
Expand Down

0 comments on commit c74b5ee

Please sign in to comment.