Skip to content

Commit 7716ad2

Browse files
author
alchav
committed
Queued checks send out faster
1 parent ee43a9d commit 7716ad2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

worlds/tetris_gb/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ async def game_watcher(self, ctx):
127127
else:
128128
self.check_countdown -= 1
129129
if self.check_countdown <= 0:
130-
check = pending_checks[0]
131-
await ctx.send_msgs([{"cmd": "LocationChecks", "locations": [check]}])
132-
self.check_countdown = random.randint(1, 11)
130+
checks = pending_checks[:max(1, len(pending_checks) // 10)]
131+
await ctx.send_msgs([{"cmd": "LocationChecks", "locations": checks}])
132+
self.check_countdown = random.randint(1, 3)
133133
else:
134134
self.check_countdown = 0
135135
else:

0 commit comments

Comments
 (0)