mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-02-22 14:41:57 +01:00
Fix #1358 by checking for null before processing
This commit is contained in:
parent
89dfcaf626
commit
0137105a6d
@ -131,6 +131,7 @@ public class ChatRewriter {
|
||||
}
|
||||
|
||||
private static void processTranslate(BaseComponent component) {
|
||||
if (component == null) return;
|
||||
if (component instanceof TranslatableComponent) {
|
||||
String oldTranslate = ((TranslatableComponent) component).getTranslate();
|
||||
String newTranslate;
|
||||
|
@ -18,6 +18,7 @@ public class InventoryNameRewriter {
|
||||
}
|
||||
|
||||
private static void processTranslate(BaseComponent component) {
|
||||
if (component == null) return;
|
||||
if (component instanceof TranslatableComponent) {
|
||||
String oldTranslate = ((TranslatableComponent) component).getTranslate();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user