diff --git a/src/ui/abstact-option-select-ui-handler.ts b/src/ui/abstact-option-select-ui-handler.ts index 92a1963f372..c3ccddff464 100644 --- a/src/ui/abstact-option-select-ui-handler.ts +++ b/src/ui/abstact-option-select-ui-handler.ts @@ -110,9 +110,6 @@ export default abstract class AbstractOptionSelectUiHandler extends UiHandler { } processInput(button: Button): boolean { - if (this.blockInput) - return false; - const ui = this.getUi(); let success = false; @@ -122,6 +119,9 @@ export default abstract class AbstractOptionSelectUiHandler extends UiHandler { let playSound = true; if (button === Button.ACTION || button === Button.CANCEL) { + if (this.blockInput) + return false; + success = true; if (button === Button.CANCEL) { if (this.config?.maxOptions && this.config.options.length > this.config.maxOptions) { diff --git a/src/ui/biome-select-ui-handler.ts b/src/ui/biome-select-ui-handler.ts index ff0a6a88293..083a13d020e 100644 --- a/src/ui/biome-select-ui-handler.ts +++ b/src/ui/biome-select-ui-handler.ts @@ -74,14 +74,14 @@ export default class BiomeSelectUiHandler extends UiHandler { } processInput(button: Button): boolean { - if (this.blockInput) - return false; - const ui = this.getUi(); let success = false; if (button === Button.ACTION || button === Button.CANCEL) { + if (this.blockInput) + return false; + success = true; const originalBiomeSelectHandler = this.biomeSelectHandler; this.biomeSelectHandler = null;