From 43b2609f24388162064a5d84a58ab5f778bf56de Mon Sep 17 00:00:00 2001 From: Sebastian Gabl Date: Fri, 9 Jun 2023 08:14:18 +0200 Subject: [PATCH] Check for network manager existing --- Hooks/Fixes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Hooks/Fixes.lua b/Hooks/Fixes.lua index aa29d3e1..b72420b7 100644 --- a/Hooks/Fixes.lua +++ b/Hooks/Fixes.lua @@ -672,11 +672,11 @@ elseif F == "platformmanager" then core:module("PlatformManager") -- Fixes rich presence to work with custom heists by forcing raw status. Hooks:PostHook(WinPlatformManager, "set_rich_presence", "FixCustomHeistStatus", function(self) - if not Global.game_settings.single_player and Global.game_settings.permission ~= "private" and name ~= "Idle" and managers.network.matchmake.lobby_handler then + if not Global.game_settings.single_player and Global.game_settings.permission ~= "private" and name ~= "Idle" and managers.network and managers.network.matchmake.lobby_handler then local job = managers.job:current_job_data() if job and job.custom then Steam:set_rich_presence("steam_display", "#raw_status") end end - end) + end) end \ No newline at end of file