Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-24 15:20:15 +01:00
Fix #1358 by checking for null before processing
Dieser Commit ist enthalten in:
Ursprung
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();
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren