From c760348f724db356c9c37f96e17d1c1a9484f3a9 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 20 Aug 2023 23:49:59 +0700 Subject: [PATCH] Remove unnecessary unchecked cast --- src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt index 11dda4464..66f71ec48 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt @@ -182,7 +182,7 @@ abstract class MatteryMenu( inner class SortInput(val container: Container, settings: IItemStackSortingSettings?) { val settings = IItemStackSortingSettings.inputs(this@MatteryMenu, settings) - val input = PlayerInput(CollectionStreamCodec(VarIntValueCodec, ::IntArrayList) as IStreamCodec) { + val input = PlayerInput(CollectionStreamCodec(VarIntValueCodec, ::IntArrayList)) { container.sortWithIndices(it) }