Set serverApi as soon as possible

This commit is contained in:
NGnius (Graham) 2022-07-15 16:28:02 -04:00
parent d3f5a7d4df
commit 278a28a11f

View file

@ -415,6 +415,8 @@ export default definePlugin((serverApi: ServerAPI) => {
exact: true, exact: true,
}); });
python.setServer(serverApi);
//@ts-ignore //@ts-ignore
lifetimeHook = SteamClient.GameSessions.RegisterForAppLifetimeNotifications((update) => { lifetimeHook = SteamClient.GameSessions.RegisterForAppLifetimeNotifications((update) => {
if (update.bRunning) { if (update.bRunning) {