From d8c644c64b5b20aee5eb34326a0a9e2493b2ed27 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Mon, 23 Jan 2023 16:45:08 +0700 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5?= =?UTF-8?q?=D0=B9=D1=81=D1=8B=20=D0=BD=D0=B5=20=D0=BD=D0=B0=D0=B4=D0=BE=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D1=81=D0=BC=D0=B0=D1=82=D1=80=D0=B8=D0=B2?= =?UTF-8?q?=D0=B0=D1=82=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kstarbound/io/json/builder/BuilderAdapter.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/io/json/builder/BuilderAdapter.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/io/json/builder/BuilderAdapter.kt index dfa9f449..650b71fd 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/io/json/builder/BuilderAdapter.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/io/json/builder/BuilderAdapter.kt @@ -359,8 +359,10 @@ class BuilderAdapter private constructor( } for (parent in input.supertypes) { - if (parent.classifier is KClass<*>) { - collectDecl(parent.classifier as KClass<*>, output) + val classifier = parent.classifier + + if (classifier is KClass<*> && !classifier.java.isInterface) { + collectDecl(classifier, output) } } }