Skip to content

Commit

Permalink
Update GauntletLegendsClient.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbrq committed Nov 4, 2024
1 parent 6a82fd1 commit b8219e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion worlds/gl/GauntletLegendsClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b8219e7

Please sign in to comment.