From c63308f37b4ca37b35a4c44a191d681888a24ba0 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 1 Jan 2023 18:21:16 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D0=B4=D0=BE=20=D1=80=D0=B0=D0=B7?= =?UTF-8?q?=D1=80=D0=B5=D1=88=D0=B8=D1=82=D1=8C=20=D0=BA=D0=BE=D0=BC=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D1=82=D0=B0=D1=80=D0=B8=D0=B8=20=D0=B2=20json'?= =?UTF-8?q?=D0=BD=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dbotthepony/kstarbound/defs/image/AtlasConfiguration.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } }