Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-19 14:30:16 +01:00
Only print broken json in component type when debug mode is enabled (#3990)
Dieser Commit ist enthalten in:
Ursprung
bfbb80f708
Commit
f4d6659760
@ -44,7 +44,9 @@ public class ComponentType extends Type<JsonElement> {
|
|||||||
try {
|
try {
|
||||||
return JsonParser.parseString(s);
|
return JsonParser.parseString(s);
|
||||||
} catch (JsonSyntaxException e) {
|
} catch (JsonSyntaxException e) {
|
||||||
|
if (Via.getManager().isDebug()) {
|
||||||
Via.getPlatform().getLogger().severe("Error when trying to parse json: " + s);
|
Via.getPlatform().getLogger().severe("Error when trying to parse json: " + s);
|
||||||
|
}
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren