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