mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-11-14 17:46:03 +00:00
Fixed top5 and other error messages.
Now cache data is not empty when loaded.
This commit is contained in:
parent
860b05befe
commit
f19e222c38
1 changed files with 1 additions and 0 deletions
1
dist/ba_root/mods/playersData/pdata.py
vendored
1
dist/ba_root/mods/playersData/pdata.py
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue