From 10d3afab58dc8c62bf65c4e9836d0e40cf263764 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 1 Mar 2022 13:52:57 -0500 Subject: [PATCH] Fix bug where int mc ping was not defined for bedrock servers --- app/classes/minecraft/stats.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/classes/minecraft/stats.py b/app/classes/minecraft/stats.py index 6453f841..e5411107 100644 --- a/app/classes/minecraft/stats.py +++ b/app/classes/minecraft/stats.py @@ -201,12 +201,12 @@ class Stats: int_mc_ping = ping(internal_ip, int(server_port)) - ping_data = {} + ping_data = {} - # if we got a good ping return, let's parse it - if int_mc_ping: - ping_data = self.parse_server_ping(int_mc_ping) - return ping_data['players'] + # if we got a good ping return, let's parse it + if int_mc_ping: + ping_data = self.parse_server_ping(int_mc_ping) + return ping_data['players'] return [] def get_servers_stats(self):