Skip to content

Commit

Permalink
SM: getitem cheat fix (ArchipelagoMW#3102)
Browse files Browse the repository at this point in the history
  • Loading branch information
lordlou authored and qwint committed Jun 24, 2024
1 parent 8470a96 commit fd7ef20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/sm/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ async def game_watcher(self, ctx):
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
Expand Down

0 comments on commit fd7ef20

Please sign in to comment.