From 87d35eb4afe24852ddda195af58e57074dfcf70d Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 22 Aug 2023 16:31:22 +0700 Subject: [PATCH] Fix double wrapping sort settings into player input --- src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 e3299f78e..c86d38b2c 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt @@ -179,9 +179,7 @@ abstract class MatteryMenu( } } - inner class SortInput(val container: Container, settings: IItemStackSortingSettings?) { - val settings = IItemStackSortingSettings.inputs(this@MatteryMenu, settings) - + inner class SortInput(val container: Container, val settings: IItemStackSortingSettings) { val input = PlayerInput(CollectionStreamCodec(VarIntValueCodec, ::IntArrayList)) { container.sortWithIndices(it) }