diff --git a/SNIClient.py b/SNIClient.py index b7c9ba90..ff56595a 100644 --- a/SNIClient.py +++ b/SNIClient.py @@ -1185,7 +1185,10 @@ async def game_watcher(ctx: Context): if itemOutPtr < len(ctx.items_received): item = ctx.items_received[itemOutPtr] itemId = item.item - items_start_id - locationId = (item.location - locations_start_id) if item.location >= 0 and bool(ctx.items_handling & 0b010) else 0x00 + if bool(ctx.items_handling & 0b010): + locationId = (item.location - locations_start_id) if (item.location >= 0 and item.player == ctx.slot) else 0xFF + else: + locationId = 0x00 #backward compat playerID = item.player if item.player <= SM_ROM_PLAYER_LIMIT else 0 snes_buffered_write(ctx, SM_RECV_PROGRESS_ADDR + itemOutPtr * 4, bytes(