From 39dd94dc6c7aafd702623aa57ed5081ae0e2eb40 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 5 Feb 2023 16:16:28 +0700 Subject: [PATCH] =?UTF-8?q?=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ru/dbotthepony/kstarbound/io/json/builder/FactoryAdapter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/io/json/builder/FactoryAdapter.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/io/json/builder/FactoryAdapter.kt index 19f3c41f..6ec515da 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/io/json/builder/FactoryAdapter.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/io/json/builder/FactoryAdapter.kt @@ -408,7 +408,7 @@ class FactoryAdapter private constructor( return FactoryAdapter( bound = clazz, - types = types.stream().map { it.resolve(gson) }.collect(ImmutableList.toImmutableList()), + types = ImmutableList.copyOf(types.map { it.resolve(gson) }), asJsonArray = asList, storesJson = storesJson, logMisses = logMisses,