mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-02-24 23:51:24 +01:00
parent
cf7d49aec5
commit
ea0f91136e
@ -106,8 +106,12 @@ public class ComponentRewriter {
|
||||
processText(root);
|
||||
return root;
|
||||
} catch (JsonSyntaxException e) {
|
||||
Via.getPlatform().getLogger().severe("Error when trying to parse json: " + value);
|
||||
throw e;
|
||||
if (Via.getManager().isDebug()) {
|
||||
Via.getPlatform().getLogger().severe("Error when trying to parse json: " + value);
|
||||
throw e;
|
||||
}
|
||||
// Yay to malformed json being accepted
|
||||
return new JsonPrimitive(value);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user