Skip to content

Commit

Permalink
Check for network manager existing
Browse files Browse the repository at this point in the history
  • Loading branch information
segabl committed Jun 9, 2023
1 parent 18169de commit 43b2609
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Hooks/Fixes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 43b2609

Please sign in to comment.