Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 08:30:09 +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) {
|
||||||
Via.getPlatform().getLogger().severe("Error when trying to parse json: " + s);
|
if (Via.getManager().isDebug()) {
|
||||||
|
Via.getPlatform().getLogger().severe("Error when trying to parse json: " + s);
|
||||||
|
}
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren