From 033bb35e0fc2c11528292183653ba9ea8d6fbd40 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 9 Dec 2020 20:46:57 +0300 Subject: [PATCH] Fix weird bug with maxplayers being float --- server_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_entry.py b/server_entry.py index d588748..78ac1a6 100644 --- a/server_entry.py +++ b/server_entry.py @@ -34,7 +34,7 @@ class ServerEntry: elif( split[i] == 'players' ): self.players = int(key) elif( split[i] == 'max' ): - self.maxplayers = int(key) + self.maxplayers = int(key.split('.')[0]) elif( split[i] == 'bots' ): self.bots = int(key) elif( split[i] == 'map' ):