From 2314b7d91c8bbd53b314f15aa3e123d3354ab94f Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sat, 18 Mar 2023 14:47:29 +0700 Subject: [PATCH] a --- .../ru/dbotthepony/mc/otm/compat/curios/CuriosCompat.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/compat/curios/CuriosCompat.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/compat/curios/CuriosCompat.kt index 342e21dc2..c230f0066 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/compat/curios/CuriosCompat.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/compat/curios/CuriosCompat.kt @@ -16,8 +16,8 @@ import top.theillusivec4.curios.api.CuriosApi import top.theillusivec4.curios.api.event.SlotModifiersUpdatedEvent import top.theillusivec4.curios.common.inventory.CosmeticCurioSlot import top.theillusivec4.curios.common.inventory.CurioSlot -import java.util.* import java.util.stream.Stream +import kotlin.collections.ArrayList val isCuriosLoaded by lazy { ModList.get().isLoaded(CuriosApi.MODID) @@ -77,7 +77,7 @@ val Player.curiosSlots: List> get() { private fun Player.curiosStreamImpl(includeCosmetics: Boolean): Stream { val handler = getCapability(MatteryCapability.CURIOS_INVENTORY).orNull() ?: return Stream.empty() - val result = LinkedList>() + val result = ArrayList>() for ((identifier, curio) in handler.curios) { result.add(curio.stacks.stream()) @@ -101,7 +101,7 @@ fun Player.curiosStream(includeCosmetics: Boolean = true): Stream private fun Player.curiosAwareStreamImpl(includeCosmetics: Boolean): Stream { val handler = getCapability(MatteryCapability.CURIOS_INVENTORY).orNull() ?: return Stream.empty() - val result = LinkedList>() + val result = ArrayList>() for ((identifier, curio) in handler.curios) { result.add(curio.stacks.awareStream())