Skip to content

Commit

Permalink
Pardon
Browse files Browse the repository at this point in the history
  • Loading branch information
Ardub92 committed Nov 22, 2023
1 parent aff0e57 commit ffeef1a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions harmony-patches/CyberGrindPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,12 @@ static void Postfix()
// check when the player in a lobby
if (LobbyController.Lobby != null || LobbyController.IsOwner)
{
// sets as first time
cg.LoadTimes = 0;
// check if current pattern is loaded and the player is the client
if (cg.CurrentPattern != null && !LobbyController.IsOwner)
{
// sets as first time
cg.LoadTimes = 0;
// loads current pattern from the server
cg.LoadCurrentPattern();
}
// send empty pattern when game starts and the player is the owner to prevent load previous cybergrind pattern
else cg.SendPattern(new ArenaPattern());
}
Expand Down

0 comments on commit ffeef1a

Please sign in to comment.