3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-03 14:50:30 +01:00
Dieser Commit ist enthalten in:
KennyTV 2020-08-17 09:32:31 +02:00 committet von Nassim
Ursprung d36def89e1
Commit a709382d25

Datei anzeigen

@ -104,10 +104,9 @@ public class ComponentRewriter1_13 extends ComponentRewriter {
protected void handleTranslate(JsonObject object, String translate) { protected void handleTranslate(JsonObject object, String translate) {
super.handleTranslate(object, translate); super.handleTranslate(object, translate);
String newTranslate; String newTranslate;
Protocol1_13To1_12_2 protocol = getProtocol(); newTranslate = Protocol1_13To1_12_2.MAPPINGS.getTranslateMapping().get(translate);
newTranslate = protocol.getMappingData().getTranslateMapping().get(translate);
if (newTranslate == null) { if (newTranslate == null) {
newTranslate = protocol.getMappingData().getMojangTranslation().get(translate); newTranslate = Protocol1_13To1_12_2.MAPPINGS.getMojangTranslation().get(translate);
} }
if (newTranslate != null) { if (newTranslate != null) {
object.addProperty("translate", newTranslate); object.addProperty("translate", newTranslate);