mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 01:55:47 +01:00
Only print broken json in component type when debug mode is enabled (#3990)
This commit is contained in:
parent
bfbb80f708
commit
f4d6659760
@ -44,7 +44,9 @@ public class ComponentType extends Type<JsonElement> {
|
||||
try {
|
||||
return JsonParser.parseString(s);
|
||||
} catch (JsonSyntaxException e) {
|
||||
if (Via.getManager().isDebug()) {
|
||||
Via.getPlatform().getLogger().severe("Error when trying to parse json: " + s);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user