From 8a4abb90bd5312e5bedddb0e9a7fa6214ab1ca5e Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Thu, 27 Feb 2025 21:08:00 +0700 Subject: [PATCH] Forgot to switch IntSortedSet to IntSet --- .../kotlin/ru/dbotthepony/mc/otm/container/ContainerHelpers.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/container/ContainerHelpers.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/container/ContainerHelpers.kt index 84b25bfe9..74cd6669f 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/container/ContainerHelpers.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/container/ContainerHelpers.kt @@ -44,7 +44,7 @@ val Container.slotRange: IntRange2Set get() { return IntRange2Set.openEnded(0, containerSize) } -fun Container.addItem(stack: ItemStack, simulate: Boolean, slots: IntSortedSet = slotRange): ItemStack { +fun Container.addItem(stack: ItemStack, simulate: Boolean, slots: IntSet = slotRange): ItemStack { return IEnhancedContainer.wrap(this).addItem(stack, simulate, slots) }