Fix wrong argument order inside children panels

This commit is contained in:
DBotThePony 2024-01-14 00:28:06 +07:00
parent 87a7c2961f
commit f7e3166ca0
Signed by: DBot
GPG Key ID: DCC23B5715498507
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

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