Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-09-08 22:02:50 +02:00
Ursprung
cf7d49aec5
Commit
ea0f91136e
@ -106,8 +106,12 @@ public class ComponentRewriter {
|
|||||||
processText(root);
|
processText(root);
|
||||||
return root;
|
return root;
|
||||||
} catch (JsonSyntaxException e) {
|
} catch (JsonSyntaxException e) {
|
||||||
Via.getPlatform().getLogger().severe("Error when trying to parse json: " + value);
|
if (Via.getManager().isDebug()) {
|
||||||
throw e;
|
Via.getPlatform().getLogger().severe("Error when trying to parse json: " + value);
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
// Yay to malformed json being accepted
|
||||||
|
return new JsonPrimitive(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren