mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
bug fix
This commit is contained in:
parent
713e2d03d9
commit
421c488c6a
3 changed files with 4 additions and 2 deletions
2
dist/ba_data/python/ba/_meta.py
vendored
2
dist/ba_data/python/ba/_meta.py
vendored
|
|
@ -288,7 +288,7 @@ class DirectoryScan:
|
|||
|
||||
# If we find a module requiring a different api version, warn
|
||||
# and ignore.
|
||||
if required_api is not None and required_api <= CURRENT_API_VERSION:
|
||||
if required_api is not None and required_api < CURRENT_API_VERSION:
|
||||
self.results.warnings += (
|
||||
f'Warning: {subpath} requires api {required_api} but'
|
||||
f' we are running {CURRENT_API_VERSION}; ignoring module.\n')
|
||||
|
|
|
|||
3
dist/ba_root/mods/custom_hooks.py
vendored
3
dist/ba_root/mods/custom_hooks.py
vendored
|
|
@ -53,8 +53,9 @@ class modSetup(ba.Plugin):
|
|||
|
||||
if settings["afk_remover"]['enable']:
|
||||
afk_check.checkIdle().start()
|
||||
def on_app_shutdown(self):
|
||||
playlist.flush_playlists()
|
||||
def on_app_shutdown(self):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
1
dist/ba_root/mods/tools/playlist.py
vendored
1
dist/ba_root/mods/tools/playlist.py
vendored
|
|
@ -102,6 +102,7 @@ def setPlaylist(para):
|
|||
|
||||
|
||||
def flush_playlists():
|
||||
print("Clearing old playlists..")
|
||||
for playlist in _ba.app.config["Team Tournament Playlists"]:
|
||||
_ba.add_transaction(
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue