3
0
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:
Nassim Jahnke 2023-03-18 10:01:37 +01:00
Ursprung ad56caeb88
Commit 9ccc3aed30
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B

Datei anzeigen

@ -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) {