Fix NPE in 1.16 TranslatableRewriter

Closes ViaVersion/ViaVersion#2655
This commit is contained in:
kennytv 2021-08-09 09:08:15 +02:00
parent e251565837
commit a03a3a2a8d
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -54,7 +54,8 @@ public class TranslatableRewriter1_16 extends TranslatableRewriter {
@Override
public void processText(JsonElement value) {
super.processText(value);
if (!value.isJsonObject()) return;
if (value == null || !value.isJsonObject()) return;
// c o l o r s
JsonObject object = value.getAsJsonObject();