3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-03 14:50:30 +01:00

Fix 1.13 component rewriter npe

Dieser Commit ist enthalten in:
KennyTV 2020-08-18 10:06:52 +02:00
Ursprung be6e086aac
Commit 1b862d084b
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B

Datei anzeigen

@ -104,7 +104,7 @@ public class ComponentRewriter1_13 extends ComponentRewriter {
super.handleTranslate(object, translate); super.handleTranslate(object, translate);
String newTranslate; String newTranslate;
newTranslate = MappingData.translateMapping.get(translate); newTranslate = MappingData.translateMapping.get(translate);
if (newTranslate == null) { if (newTranslate != null) {
newTranslate = MappingData.mojangTranslation.get(translate); newTranslate = MappingData.mojangTranslation.get(translate);
} }
if (newTranslate != null) { if (newTranslate != null) {