From a250cbd98df64a8a2e96aee31fa0bf1049320b7e Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Khan Date: Fri, 10 Mar 2023 14:35:46 +0530 Subject: [PATCH] Renamed classes --- stardew-access/HarmonyPatches.cs | 2 +- .../{CarpenterMenuPach.cs => CarpenterMenuPatch.cs} | 0 .../Patches/{ChatMenuPatches.cs => ChatMenuPatch.cs} | 7 +++---- stardew-access/Patches/MenuPatches.cs | 1 - 4 files changed, 4 insertions(+), 6 deletions(-) rename stardew-access/Patches/{CarpenterMenuPach.cs => CarpenterMenuPatch.cs} (100%) rename stardew-access/Patches/{ChatMenuPatches.cs => ChatMenuPatch.cs} (93%) diff --git a/stardew-access/HarmonyPatches.cs b/stardew-access/HarmonyPatches.cs index cb8d85c..b6cf1e3 100644 --- a/stardew-access/HarmonyPatches.cs +++ b/stardew-access/HarmonyPatches.cs @@ -213,7 +213,7 @@ namespace stardew_access #region Chat Menu Patches harmony.Patch( original: AccessTools.Method(typeof(ChatBox), nameof(ChatBox.update), new Type[] { typeof(GameTime) }), - postfix: new HarmonyMethod(typeof(ChatMenuPatches), nameof(ChatMenuPatches.ChatBoxPatch)) + postfix: new HarmonyMethod(typeof(ChatMenuPatch), nameof(ChatMenuPatch.UpdatePatch)) ); #endregion diff --git a/stardew-access/Patches/CarpenterMenuPach.cs b/stardew-access/Patches/CarpenterMenuPatch.cs similarity index 100% rename from stardew-access/Patches/CarpenterMenuPach.cs rename to stardew-access/Patches/CarpenterMenuPatch.cs diff --git a/stardew-access/Patches/ChatMenuPatches.cs b/stardew-access/Patches/ChatMenuPatch.cs similarity index 93% rename from stardew-access/Patches/ChatMenuPatches.cs rename to stardew-access/Patches/ChatMenuPatch.cs index c997ac7..a0b521e 100644 --- a/stardew-access/Patches/ChatMenuPatches.cs +++ b/stardew-access/Patches/ChatMenuPatch.cs @@ -1,14 +1,13 @@ -using StardewValley; -using StardewValley.Menus; +using StardewValley.Menus; namespace stardew_access.Patches { - internal class ChatMenuPatches + internal class ChatMenuPatch { private static int currentChatMessageIndex = 0; private static bool isChatRunning = false; - internal static void ChatBoxPatch(ChatBox __instance, List ___messages) + internal static void UpdatePatch(ChatBox __instance, List ___messages) { try { diff --git a/stardew-access/Patches/MenuPatches.cs b/stardew-access/Patches/MenuPatches.cs index 1aa61a1..46acc3f 100644 --- a/stardew-access/Patches/MenuPatches.cs +++ b/stardew-access/Patches/MenuPatches.cs @@ -311,7 +311,6 @@ namespace stardew_access.Patches } } - internal static void LanguageSelectionMenuPatch(LanguageSelectionMenu __instance) { try