From ffeef1a7af22fa05adb4de75721e73fb30146673 Mon Sep 17 00:00:00 2001 From: Ardub Date: Wed, 22 Nov 2023 23:22:49 +0300 Subject: [PATCH] Pardon --- harmony-patches/CyberGrindPatch.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/harmony-patches/CyberGrindPatch.cs b/harmony-patches/CyberGrindPatch.cs index 6da0a7de..87cefd70 100644 --- a/harmony-patches/CyberGrindPatch.cs +++ b/harmony-patches/CyberGrindPatch.cs @@ -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()); }