Skip to content

Commit

Permalink
Merge pull request #194 from project-fika/dev
Browse files Browse the repository at this point in the history
Fix raid presence getting reset after transit
  • Loading branch information
Lacyway authored Nov 27, 2024
2 parents 8336a23 + 81fa9f6 commit f2f0866
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using Fika.Core.Modding;
using Fika.Core.Modding.Events;
using Fika.Core.Networking.Http;
using Fika.Core.UI.Custom;
using HarmonyLib;
using JsonType;
using SPT.Reflection.Patching;
Expand Down Expand Up @@ -131,6 +132,12 @@ public static async Task CreateFikaGame(TarkovApplication instance, TimeAndWeath
instance.MatchmakerPlayerControllerClass.UpdateMatchingStatus("Creating coop game...");
}

// This gets incorrectly reset by the server, update it manually here during transit
if (isTransit && MainMenuUIScript.Exist)
{
MainMenuUIScript.Instance.UpdatePresence(UI.FikaUIGlobals.EFikaPlayerPresence.IN_RAID);
}

StartHandler startHandler = new(instance, session.Profile, session.ProfileOfPet, raidSettings.SelectedLocation);

TimeSpan raidLimits = instance.method_47(raidSettings.SelectedLocation.EscapeTimeLimit);
Expand Down

0 comments on commit f2f0866

Please sign in to comment.