Skip to content

Commit

Permalink
Remove player from session when cancelling
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed May 15, 2024
1 parent ae09a7b commit c59750e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Fika.Core/Coop/Components/CoopHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ public static string GetServerId()
{
CoopHandler coopGC = GetCoopHandler();
if (coopGC == null)
return null;
{
return MatchmakerAcceptPatches.GetGroupId();
}

return coopGC.ServerId;
}
Expand Down
2 changes: 2 additions & 0 deletions Fika.Core/Coop/GameMode/CoopGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,8 @@ public override async Task<LocalPlayer> vmethod_2(int playerId, Vector3 position
ErrorScreen.EButtonType.OkButton, 15f, () =>
{
StopFromError(myPlayer.ProfileId, ExitStatus.Runner);
PlayerLeftRequest playerLeftRequest = new(coopPlayer.ProfileId);
FikaRequestHandler.RaidLeave(playerLeftRequest);
}, null);
});
Traverse.Create(backButtonComponent).Field("OnClick").SetValue(newEvent);
Expand Down

0 comments on commit c59750e

Please sign in to comment.