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) }