Skip to content

Commit

Permalink
Fix Scum wrong maxplayers field issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Mar 15, 2024
1 parent acc7c43 commit 72df2f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discordgsm/protocols/scum.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ async def query(self):
"password": data.get("password", False),
"numplayers": data.get("num_players", 0),
"numbots": 0,
"maxplayers": data.get("maxplayers", 0),
"maxplayers": data.get("max_players", 0),
"players": None,
"bots": None,
"connect": f"{host}:{data.get('port', port) - 2}",
"connect": f"{host}:{port - 2}",
"ping": ping,
"raw": data,
}
Expand Down

0 comments on commit 72df2f2

Please sign in to comment.