3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-03 14:50:30 +01:00
Dieser Commit ist enthalten in:
creeper123123321 2018-11-08 16:18:20 -02:00
Ursprung d9eff7bb5c
Commit 3fc2d28b95
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 0AC57D54786721D1

Datei anzeigen

@ -139,8 +139,10 @@ public class ChatRewriter {
if (newTranslate != null) {
((TranslatableComponent) component).setTranslate(newTranslate);
}
for (BaseComponent baseComponent : ((TranslatableComponent) component).getWith()) {
processTranslate(baseComponent);
if (((TranslatableComponent) component).getWith() != null) {
for (BaseComponent baseComponent : ((TranslatableComponent) component).getWith()) {
processTranslate(baseComponent);
}
}
}
if (component.getHoverEvent() != null) {
@ -148,8 +150,10 @@ public class ChatRewriter {
processTranslate(baseComponent);
}
}
for (BaseComponent baseComponent : component.getExtra()) {
processTranslate(baseComponent);
if (component.getExtra() != null) {
for (BaseComponent baseComponent : component.getExtra()) {
processTranslate(baseComponent);
}
}
}
}