diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/matter/MatterPanelScreen.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/matter/MatterPanelScreen.kt index b1d960325..b8cc65f16 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/matter/MatterPanelScreen.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/matter/MatterPanelScreen.kt @@ -109,7 +109,7 @@ class MatterPanelScreen( placeholder = TranslatableComponent("otm.gui.quicksearch") } - override fun onTextChanged(old: String, new: String) { + override fun onTextChanged(new: String, old: String) { if (new == "") { menu.filter = Predicate { true } } else { diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/tech/EssenceStorageScreen.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/tech/EssenceStorageScreen.kt index 011dc31de..970f19148 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/tech/EssenceStorageScreen.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/tech/EssenceStorageScreen.kt @@ -223,7 +223,7 @@ class EssenceStorageScreen(menu: EssenceStorageMenu, inventory: Inventory, title playGuiClickSound() } - override fun onTextChanged(old: String, new: String) { + override fun onTextChanged(new: String, old: String) { customDispense = (new.toIntOrNull() ?: 30).coerceAtLeast(1) } }