From cf7f16d36b50bf121d86ed404a18f80ef5b7821c Mon Sep 17 00:00:00 2001 From: MarioSpore Date: Sat, 30 Aug 2025 09:09:35 -0400 Subject: [PATCH] Changed item received addresses among other removals that became useless --- worlds/grinch/Client.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/worlds/grinch/Client.py b/worlds/grinch/Client.py index 41c199e9..53bd1e59 100644 --- a/worlds/grinch/Client.py +++ b/worlds/grinch/Client.py @@ -12,7 +12,7 @@ if TYPE_CHECKING: # Stores received index of last item received in PS1 memory card save data # By storing this index, it will remember the last item received and prevent item duplication loops -RECV_ITEM_ADDR = 0x010064 +RECV_ITEM_ADDR = 0x010068 RECV_ITEM_BITSIZE = 4 # Maximum number of times we check if we are in demo mode or not @@ -84,10 +84,10 @@ class GrinchClient(BizHawkClient): if not await self.ingame_checker(ctx): return + await self.constant_address_update(ctx) await self.location_checker(ctx) await self.receiving_items_handler(ctx) await self.goal_checker(ctx) - await self.constant_address_update(ctx) await self.option_handler(ctx) except bizhawk.RequestFailedError: @@ -190,8 +190,6 @@ class GrinchClient(BizHawkClient): # This assumes we don't have the item so we must set all the data to 0 for addr_to_update in item_data.update_ram_addr: is_binary = True if not addr_to_update.binary_bit_pos is None else False - current_ram_address_value = int.from_bytes((await bizhawk.read(ctx.bizhawk_ctx, [( - addr_to_update.ram_address, addr_to_update.bit_size, "MainRAM")]))[0], "little") if is_binary: await self.update_and_validate_address(ctx, addr_to_update.ram_address, 0, 1)