Skip to content
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.

Commit

Permalink
unaware this was a problem
Browse files Browse the repository at this point in the history
  • Loading branch information
XuaTheGrate committed Nov 12, 2019
1 parent 09d2f32 commit f48d609
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ async def interact(self, ctx):
if (i := int(cid)) in valid:
valid.remove(i)
it = []
for v in (i['name'] for i in ctx.player.map.areas[ctx.player.area]['interactions']
for v in (i for i in ctx.player.map.areas[ctx.player.area]['interactions']
if i['type'] == 1 and i['id'] in valid):
it.append(f'{v["id"]}. {v}')
it.append(f'{v["id"]}. {v["name"]}')
tot = '\n'.join(it)
if len(tot) > 2048:
for chunk in [it[x:x+20] for x in range(0, len(tot), 20)]:
Expand Down

0 comments on commit f48d609

Please sign in to comment.