Skip to content

Commit f673574

Browse files
authored
Core: Fix !remaining (#3611)
1 parent 50f7a79 commit f673574

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MultiServer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ def _cmd_remaining(self) -> bool:
13521352
if self.ctx.remaining_mode == "enabled":
13531353
remaining_item_ids = get_remaining(self.ctx, self.client.team, self.client.slot)
13541354
if remaining_item_ids:
1355-
self.output("Remaining items: " + ", ".join(self.ctx.item_names[self.client.slot.game][item_id]
1355+
self.output("Remaining items: " + ", ".join(self.ctx.item_names[self.ctx.games[self.client.slot]][item_id]
13561356
for item_id in remaining_item_ids))
13571357
else:
13581358
self.output("No remaining items found.")
@@ -1365,7 +1365,7 @@ def _cmd_remaining(self) -> bool:
13651365
if self.ctx.client_game_state[self.client.team, self.client.slot] == ClientStatus.CLIENT_GOAL:
13661366
remaining_item_ids = get_remaining(self.ctx, self.client.team, self.client.slot)
13671367
if remaining_item_ids:
1368-
self.output("Remaining items: " + ", ".join(self.ctx.item_names[self.client.slot.game][item_id]
1368+
self.output("Remaining items: " + ", ".join(self.ctx.item_names[self.ctx.games[self.client.slot]][item_id]
13691369
for item_id in remaining_item_ids))
13701370
else:
13711371
self.output("No remaining items found.")

0 commit comments

Comments
 (0)