Skip to content

Commit

Permalink
Re-allow multiple game subelements (#1393)
Browse files Browse the repository at this point in the history
Signed-off-by: BT (calcastor/mame) <[email protected]>
  • Loading branch information
calcastor authored Sep 2, 2024
1 parent 4b43cfb commit bd1e600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/tc/oc/pgm/map/MapInfoImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public Component getStyledName(MapNameStyle style) {
}

private Component parseGamemode(Element root) throws InvalidXMLException {
Component gamemode = XMLUtils.parseFormattedText(root, "game");
Component gamemode = XMLUtils.parseFormattedText(Node.fromLastChildOrAttr(root, "game"));

if (gamemode == null) {
for (Element title : XMLUtils.flattenElements(root, "blitz", "title")) {
Expand Down

0 comments on commit bd1e600

Please sign in to comment.