From 3c70621f1b480291e92c9cc8018e1aaaf19a47a5 Mon Sep 17 00:00:00 2001 From: lordlou <87331798+lordlou@users.noreply.github.com> Date: Thu, 18 Apr 2024 12:54:46 -0400 Subject: [PATCH] SM: getitem cheat fix (#3102) --- worlds/sm/Client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worlds/sm/Client.py b/worlds/sm/Client.py index ed3f2d5b..7c97f743 100644 --- a/worlds/sm/Client.py +++ b/worlds/sm/Client.py @@ -139,7 +139,7 @@ class SMSNIClient(SNIClient): if item_out_ptr < len(ctx.items_received): item = ctx.items_received[item_out_ptr] item_id = item.item - items_start_id - if bool(ctx.items_handling & 0b010): + if bool(ctx.items_handling & 0b010) or item.location < 0: # item.location < 0 for !getitem to work location_id = (item.location - locations_start_id) if (item.location >= 0 and item.player == ctx.slot) else 0xFF else: location_id = 0x00 #backward compat