This commit is contained in:
creeper123123321 2018-11-08 16:18:20 -02:00
parent d9eff7bb5c
commit 3fc2d28b95
No known key found for this signature in database
GPG Key ID: 0AC57D54786721D1

View File

@ -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);
}
}
}
}