Надо разрешить комментарии в json'не

This commit is contained in:
DBotThePony 2023-01-01 18:21:16 +07:00
parent 0f6cb63a10
commit c63308f37b
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -257,9 +257,9 @@ class AtlasConfiguration private constructor(
if (file.exists) {
try {
return@computeIfAbsent parseFrames(JsonReader(file.reader()), "$it.frames")
return@computeIfAbsent parseFrames(JsonReader(file.reader()).also { it.isLenient = true }, "$it.frames")
} catch (err: Throwable) {
throw JsonSyntaxException("Reading frame grid $it.frames")
throw JsonSyntaxException("Caught an exception while reading frame grid $it.frames", err)
}
}