Browse Source

Fix weird bug with maxplayers being float

pull/4/head
Alibek Omarov 4 years ago
parent
commit
033bb35e0f
  1. 2
      server_entry.py

2
server_entry.py

@ -34,7 +34,7 @@ class ServerEntry:
elif( split[i] == 'players' ): elif( split[i] == 'players' ):
self.players = int(key) self.players = int(key)
elif( split[i] == 'max' ): elif( split[i] == 'max' ):
self.maxplayers = int(key) self.maxplayers = int(key.split('.')[0])
elif( split[i] == 'bots' ): elif( split[i] == 'bots' ):
self.bots = int(key) self.bots = int(key)
elif( split[i] == 'map' ): elif( split[i] == 'map' ):

Loading…
Cancel
Save