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); } }