From 27c012a4ba4ec007264b2d4c2ba2d79e2077fd3c Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 4 Oct 2024 14:44:09 -0400 Subject: [PATCH] Fixed #10183 --- core/src/mindustry/type/MapLocales.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/type/MapLocales.java b/core/src/mindustry/type/MapLocales.java index 88dc81237a..a49869d177 100644 --- a/core/src/mindustry/type/MapLocales.java +++ b/core/src/mindustry/type/MapLocales.java @@ -21,7 +21,13 @@ public class MapLocales extends ObjectMap implements JsonSeri @Override public void read(Json json, JsonValue jsonData){ for(JsonValue value : jsonData){ - put(value.name, json.readValue(StringMap.class, value)); + StringMap map = new StringMap(); + + for(JsonValue child = value.child; child != null; child = child.next){ + map.put(child.name, json.readValue(String.class, null, child)); + } + + put(value.name, map); } }