1
0
Fork 0
mirror of https://github.com/de2tla2f/pymaster.git synced 2024-11-22 02:51:28 +00:00

Fix weird bug with maxplayers being float

This commit is contained in:
Alibek Omarov 2020-12-09 20:46:57 +03:00
parent 70c1b50c3f
commit 033bb35e0f

View file

@ -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' ):