From 33c21a0b0d13a07db144ddd7d7658005fd7582c5 Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Thu, 15 May 2025 23:14:45 +0200 Subject: [PATCH] Removed some redundant playSelect --- src/ui/party-ui-handler.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/ui/party-ui-handler.ts b/src/ui/party-ui-handler.ts index 8c4a87158d2..663f75a54fb 100644 --- a/src/ui/party-ui-handler.ts +++ b/src/ui/party-ui-handler.ts @@ -828,21 +828,10 @@ export default class PartyUiHandler extends MessageUiHandler { const selectCallback = this.selectCallback; this.selectCallback = null; selectCallback(this.cursor, option); + return true; } - // TODO: Figure out better what this option is supposed to do---presumably we want a callback - if (option === PartyOption.SELECT) { - ui.playSelect(); - } - - if ( - this.partyUiMode !== PartyUiMode.MODIFIER && - this.partyUiMode !== PartyUiMode.TM_MODIFIER && - this.partyUiMode !== PartyUiMode.MOVE_MODIFIER - ) { - ui.playSelect(); - } - return true; + return false; } processOptionMenuInput(button: Button) {