From a906f139c37c6a651647ee58a9516fffe8845137 Mon Sep 17 00:00:00 2001 From: Duck <31627079+duckboycool@users.noreply.github.com> Date: Wed, 17 Dec 2025 16:02:11 -0700 Subject: [PATCH] APQuest: Fix ValueError on typing numbers/backspace #5757 --- worlds/apquest/game/game.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/worlds/apquest/game/game.py b/worlds/apquest/game/game.py index 47dfc8cb37..709e74850a 100644 --- a/worlds/apquest/game/game.py +++ b/worlds/apquest/game/game.py @@ -158,11 +158,11 @@ class Game: if not self.gameboard.ready: return - if self.active_math_problem is not None: - if input_key in DIGIT_INPUTS_TO_DIGITS: - self.math_problem_input(DIGIT_INPUTS_TO_DIGITS[input_key]) - if input_key == Input.BACKSPACE: - self.math_problem_delete() + if input_key in DIGIT_INPUTS_TO_DIGITS: + self.math_problem_input(DIGIT_INPUTS_TO_DIGITS[input_key]) + return + if input_key == Input.BACKSPACE: + self.math_problem_delete() return if input_key == Input.LEFT: