fix max players
This commit is contained in:
parent
f4bc8d1142
commit
8b33fc0f45
@ -19,7 +19,7 @@ games: List[Game] = []
|
||||
online_players = 0
|
||||
|
||||
def advertise_lobbies():
|
||||
sio.emit('lobbies', room='lobby', data=[{'name': g.name, 'players': len(g.players), 'locked': g.password != ''} for g in games if not g.started and len(g.players) < 7])
|
||||
sio.emit('lobbies', room='lobby', data=[{'name': g.name, 'players': len(g.players), 'locked': g.password != ''} for g in games if not g.started and len(g.players) < 10])
|
||||
|
||||
@sio.event
|
||||
def connect(sid, environ):
|
||||
|
Loading…
Reference in New Issue
Block a user