code clean up

This commit is contained in:
D1GQ committed 2024-08-16 02:12:55 -05:00
1 parent 9caef935fe
commit 120c875c82
11 files changed
+8 -20

No files matched your search

+1 -2
View File
@@ -2,7 +2,6 @@
using HarmonyLib;
using Hazel;
using InnerNet;
using UnityEngine;
namespace BetterAmongUs;
@@ -309,7 +308,7 @@ class AntiCheat
return;
}
}
catch (Exception ex)
catch (Exception ex)
{
Logger.Error(ex.ToString());
}
+2 -4
View File
@@ -1,6 +1,4 @@
using System.Collections.Generic;
using System.Text;
using System.Text.Json;
using System.Text.Json;
namespace BetterAmongUs;
@@ -115,7 +113,7 @@ class BetterDataManager
return jsonData[category][name];
}
}
catch (Exception ex)
catch (Exception ex)
{
Logger.Error(ex.ToString());
}
+1 -1
View File
@@ -1,8 +1,8 @@
using AmongUs.GameOptions;
using Hazel;
using InnerNet;
using UnityEngine;
using System.Text;
using UnityEngine;
namespace BetterAmongUs;
-1
View File
@@ -1,5 +1,4 @@
using AmongUs.GameOptions;
using Hazel;
using InnerNet;
using TMPro;
using UnityEngine;
-1
View File
@@ -1,5 +1,4 @@
using AmongUs.GameOptions;
using BetterAmongUs.Patches;
namespace BetterAmongUs;
+2 -3
View File
@@ -1,5 +1,4 @@
using HarmonyLib;
using Hazel;
using UnityEngine;
namespace BetterAmongUs.Patches;
@@ -61,8 +60,8 @@ public static class OptionsMenuBehaviourPatch
if (BetterRoleAlgorithma == null || BetterRoleAlgorithma.ToggleButton == null)
{
BetterRoleAlgorithma = ClientOptionItem.Create("<color=#4f92ff>Better Role Algorithma</color>", Main.BetterRoleAlgorithma, __instance, toggleCheck: () => !toggleCheckInGamePlay("<color=#4f92ff>Better Role Algorithma</color>"));
}
}
if (BetterNotifications == null || BetterNotifications.ToggleButton == null)
{
BetterNotifications = ClientOptionItem.Create("<color=#4f92ff>Better Notifications</color>", Main.BetterNotifications, __instance, BetterNotificationsToggle);
-2
View File
@@ -1,6 +1,4 @@
using HarmonyLib;
using Hazel;
using TMPro;
namespace BetterAmongUs.Patches;
-1
View File
@@ -1,5 +1,4 @@
using HarmonyLib;
using Hazel;
using System.Text;
using TMPro;
using UnityEngine;
+2 -1
View File
@@ -209,7 +209,8 @@ class PlayerControlPatch
player.SetPlayerTextInfo(sbInfoTop.ToString());
player.SetPlayerTextInfo(sbInfoBottom.ToString(), isBottom: true);
player.SetPlayerTextInfo(sbInfo.ToString(), isInfo: true);
} catch (Exception ex)
}
catch (Exception ex)
{
Logger.Error(ex.ToString());
}
-3
View File
@@ -1,9 +1,6 @@
using BetterAmongUs.Patches;
using HarmonyLib;
using Hazel;
using InnerNet;
using System.Text.RegularExpressions;
using UnityEngine.ProBuilder;
namespace BetterAmongUs;
-1
View File
@@ -1,5 +1,4 @@
using HarmonyLib;
using Rewired;
namespace BetterAmongUs.Patches;