From 89172754f59d73b7f55d1fb1fe5d1e255ff19df2 Mon Sep 17 00:00:00 2001 From: kywch Date: Tue, 12 Mar 2024 09:56:12 -0700 Subject: [PATCH] fixed typo --- pokemonred_puffer/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemonred_puffer/environment.py b/pokemonred_puffer/environment.py index ae1736e..ba16442 100644 --- a/pokemonred_puffer/environment.py +++ b/pokemonred_puffer/environment.py @@ -507,7 +507,7 @@ def check_if_in_bag_menu(self) -> bool: ) def check_if_action_in_bag_menu(self, action) -> bool: - return action == WindowEvent.PRESS_BUTTON_A and self.check_if_in_back_menu() + return action == WindowEvent.PRESS_BUTTON_A and self.check_if_in_bag_menu() def check_if_in_overworld(self) -> bool: return self.read_m(0xD057) == 0 and self.read_m(0xCF13) == 0 and self.read_m(0xFF8C) == 0