From bd1e600879bc05993730fb9241e4ce6370be2df1 Mon Sep 17 00:00:00 2001 From: "BT (calcastor/mame)" <43831917+calcastor@users.noreply.github.com> Date: Sun, 1 Sep 2024 23:58:01 -0700 Subject: [PATCH] Re-allow multiple game subelements (#1393) Signed-off-by: BT (calcastor/mame) <43831917+calcastor@users.noreply.github.com> --- core/src/main/java/tc/oc/pgm/map/MapInfoImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/tc/oc/pgm/map/MapInfoImpl.java b/core/src/main/java/tc/oc/pgm/map/MapInfoImpl.java index 718d0d4ea2..2ecef78116 100644 --- a/core/src/main/java/tc/oc/pgm/map/MapInfoImpl.java +++ b/core/src/main/java/tc/oc/pgm/map/MapInfoImpl.java @@ -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")) {