From f19e222c381521af7b58c23615df877ef68c84e1 Mon Sep 17 00:00:00 2001 From: pranav-1711 Date: Mon, 28 Feb 2022 00:18:10 +0530 Subject: [PATCH] Fixed top5 and other error messages. Now cache data is not empty when loaded. --- dist/ba_root/mods/playersData/pdata.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/ba_root/mods/playersData/pdata.py b/dist/ba_root/mods/playersData/pdata.py index 52dc0ff..d25a716 100644 --- a/dist/ba_root/mods/playersData/pdata.py +++ b/dist/ba_root/mods/playersData/pdata.py @@ -267,6 +267,7 @@ def get_roles() -> dict: if CacheData.roles == {}: with OpenJson(PLAYERS_DATA_PATH + "roles.json") as roles_file: roles = roles_file.load() + CacheData.roles = roles return roles return CacheData.roles