fix removal of offline servers from server list
@@ -127,7 +127,7 @@ class Minecraft(commands.Cog):
jj = await res.json()
if not jj['success'] or not jj['online']:
- self.server_list.pop(s)
+ self.server_list.pop(self.server_list.index(s))
await self.random_mc_server(ctx)
return
