diff --git a/Addons/GBSUClient.cs b/Addons/GBSUClient.cs index a800c62..bdf45f1 100644 --- a/Addons/GBSUClient.cs +++ b/Addons/GBSUClient.cs @@ -29,4 +29,4 @@ public class GBSUClient : MonoBehaviour { GBNetUtils.DisconnectSelf(false); } -} \ No newline at end of file +} diff --git a/Addons/GBSUGui.cs b/Addons/GBSUGui.cs index 3053d5d..367ef0a 100644 --- a/Addons/GBSUGui.cs +++ b/Addons/GBSUGui.cs @@ -191,4 +191,4 @@ Please refer to the documentation for more information."); error_dialog = GUILayout.Window(122, error_dialog, ShowError, "An error occurred!"); } } -} \ No newline at end of file +} diff --git a/Addons/Helper.cs b/Addons/Helper.cs index 0139ddc..5a35ade 100644 --- a/Addons/Helper.cs +++ b/Addons/Helper.cs @@ -57,7 +57,7 @@ public class Helper { string names = ""; - foreach(FileInfo file in files) + foreach (FileInfo file in files) { names = file.Name + " " + names; } @@ -115,4 +115,4 @@ public class Helper LobbyManager.Instance.LobbyStates.SelfState = LobbyState.Game.Menu; } } -} \ No newline at end of file +} diff --git a/GBSU.csproj b/GBSU.csproj index 181772b..ea614bf 100644 --- a/GBSU.csproj +++ b/GBSU.csproj @@ -21,7 +21,7 @@ - + diff --git a/Patches/ConfigLoader.cs b/Patches/ConfigLoader.cs index 10f6c83..b34bfda 100644 --- a/Patches/ConfigLoader.cs +++ b/Patches/ConfigLoader.cs @@ -19,17 +19,17 @@ class ConfigLoaderPatch // Reading from file try - { + { text = File.ReadAllText(Helper.GameConfigPath); Plugin.Log.LogDebug("Provided rotation config:\n" + text); RotationConfig rc = JsonConvert.DeserializeObject(text); - __result = rc; - } - catch (Exception e) - { + __result = rc; + } + catch (Exception e) + { GBSUGui.PushError("Couldn't read game config file. A few details:\n" + e); } return false; // skip } -} \ No newline at end of file +} diff --git a/Patches/MultiplayerPatches.cs b/Patches/MultiplayerPatches.cs index 76c486e..647331f 100644 --- a/Patches/MultiplayerPatches.cs +++ b/Patches/MultiplayerPatches.cs @@ -49,7 +49,7 @@ class HandleScorePatch Plugin.Log.LogDebug("Done processing all scores!"); } - + return false; } } diff --git a/Plugin.cs b/Plugin.cs index 98947a4..973fe75 100644 --- a/Plugin.cs +++ b/Plugin.cs @@ -18,7 +18,7 @@ public class Plugin : BaseUnityPlugin public static Dictionary GameScore = []; private static GameObject _gbsuCompContainer; internal static ManualLogSource Log; - + public static GameObject GBSUCompContainer { get @@ -98,7 +98,7 @@ public class Plugin : BaseUnityPlugin foreach (var comp in comps) { Log.LogDebug("iterating thru singleton comps"); - if(comp is GBSUServer) + if (comp is GBSUServer) { Log.LogDebug("GBSUServer component was found! Destroying it"); Destroy(comp);