From b8219e781654c30f7f63f6638c63dee89d5291c8 Mon Sep 17 00:00:00 2001 From: jamesbrq Date: Mon, 4 Nov 2024 07:29:40 -0500 Subject: [PATCH] Update GauntletLegendsClient.py --- worlds/gl/GauntletLegendsClient.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worlds/gl/GauntletLegendsClient.py b/worlds/gl/GauntletLegendsClient.py index 8e567d56b145..dc47e7c19529 100644 --- a/worlds/gl/GauntletLegendsClient.py +++ b/worlds/gl/GauntletLegendsClient.py @@ -447,7 +447,9 @@ async def inv_refactor(self, new=None, one=None): self.inventory[player] += [new] else: self.inventory[one] += [new] - for player in range(self.players): + + players_to_check = range(self.players) if one is None else [one] + for player in players_to_check: for i, item in enumerate(self.inventory[player]): if item.name is not None: if "Potion" in item.name and item.count != 0: