Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-28 00:50:13 +01:00
Keep all 1.12 translation mappings cached
Dieser Commit ist enthalten in:
Ursprung
ad56caeb88
Commit
9ccc3aed30
@ -115,14 +115,12 @@ public class MappingData extends MappingDataBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String key = keyAndTranslation[0];
|
String key = keyAndTranslation[0];
|
||||||
if (!translateData.containsKey(key)) {
|
String translation = keyAndTranslation[1].replaceAll("%(\\d\\$)?d", "%$1s").trim();
|
||||||
String translation = keyAndTranslation[1].replaceAll("%(\\d\\$)?d", "%$1s");
|
mojangTranslation.put(key, translation);
|
||||||
mojangTranslation.put(key, translation);
|
|
||||||
} else {
|
String dataValue = translateData.get(key);
|
||||||
String dataValue = translateData.get(key);
|
if (dataValue != null) {
|
||||||
if (dataValue != null) {
|
translateMapping.put(key, dataValue);
|
||||||
translateMapping.put(key, dataValue);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren