diff --git a/dist/ba_root/mods/features/afk_check.py b/dist/ba_root/mods/features/afk_check.py index 9cd596a..755acf3 100644 --- a/dist/ba_root/mods/features/afk_check.py +++ b/dist/ba_root/mods/features/afk_check.py @@ -15,7 +15,7 @@ cLastIdle = 0 class checkIdle(object): def start(self): - self.t1 = babase.AppTimer(2, babase.Call(self.check), repeat=True) + self.t1 = babase.AppTimer(2, babase.CallStrict(self.check), repeat=True) self.lobbies = {} def check(self): diff --git a/dist/ba_root/mods/features/text_on_map.py b/dist/ba_root/mods/features/text_on_map.py index 9b7e1ff..6b5fb84 100644 --- a/dist/ba_root/mods/features/text_on_map.py +++ b/dist/ba_root/mods/features/text_on_map.py @@ -41,7 +41,7 @@ class textonmap: self.season_reset(_babase.season_ends_in_days) if setti["leaderboard"]["enable"]: self.leaderBoard() - self.timer = bs.timer(8, babase.Call(self.highlights_), repeat=True) + self.timer = bs.timer(8, babase.CallStrict(self.highlights_), repeat=True) def highlights_(self): if setti["textonmap"]['center highlights']["randomColor"]: diff --git a/dist/ba_root/mods/plugins/bombsquad_service.py b/dist/ba_root/mods/plugins/bombsquad_service.py index 5c0a11f..bdec815 100644 --- a/dist/ba_root/mods/plugins/bombsquad_service.py +++ b/dist/ba_root/mods/plugins/bombsquad_service.py @@ -33,9 +33,9 @@ class BsDataThread(object): )["ballistica_web"]["discord_link"] stats["vapidKey"] = notification_manager.get_vapid_keys()["public_key"] - self.refresh_stats_cache_timer = bs.AppTimer(8, babase.Call( + self.refresh_stats_cache_timer = bs.AppTimer(8, babase.CallStrict( self.refreshStats), repeat=True) - self.refresh_leaderboard_cache_timer = bs.AppTimer(10, babase.Call( + self.refresh_leaderboard_cache_timer = bs.AppTimer(10, babase.CallStrict( self.refreshLeaderboard), repeat=True) def startThread(self): @@ -118,7 +118,7 @@ class BsDataThread(object): return data -v = bs.AppTimer(8, babase.Call( +v = bs.AppTimer(8, babase.CallStrict( BsDataThread)) @@ -282,10 +282,10 @@ def update_server_config(config): def do_action(action, value): if action == "message": - _babase.pushcall(babase.Call(bs.chatmessage, value), + _babase.pushcall(babase.CallPartial(bs.chatmessage, value), from_other_thread=True) elif action == "quit": - _babase.pushcall(babase.Call(_babase.quit), from_other_thread=True) + _babase.pushcall(babase.CallStrict(_babase.quit), from_other_thread=True) def subscribe_player(sub, account_id, name): diff --git a/dist/ba_root/mods/tools/servercheck.py b/dist/ba_root/mods/tools/servercheck.py index a279936..98e2430 100644 --- a/dist/ba_root/mods/tools/servercheck.py +++ b/dist/ba_root/mods/tools/servercheck.py @@ -57,7 +57,7 @@ class ServerCheck: self.ip_client_map: Dict[str, List[int]] = {} self.device_client_map: Dict[str, List[int]] = {} self.ip_join: Dict[str, IPJoin] = {} - self.timer = bs.AppTimer(1, babase.Call(self.check), repeat=True) + self.timer = bs.AppTimer(1, babase.CallStrict(self.check), repeat=True) def check(self) -> None: """