diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/defs/image/AtlasConfiguration.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/defs/image/AtlasConfiguration.kt index 3abe1c94..00ad6daf 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/defs/image/AtlasConfiguration.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/defs/image/AtlasConfiguration.kt @@ -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) } }