From b0ef71cd4a3aa95801f86d8148cddfdd59f06366 Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Khan Date: Tue, 7 Mar 2023 12:16:39 +0530 Subject: [PATCH] bug fix --- stardew-access/Patches/GameMenuPatches/CraftingPagePatch.cs | 4 ++-- stardew-access/Patches/GameMenuPatches/InventoryPagePatch.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stardew-access/Patches/GameMenuPatches/CraftingPagePatch.cs b/stardew-access/Patches/GameMenuPatches/CraftingPagePatch.cs index 8599840..f9c5180 100644 --- a/stardew-access/Patches/GameMenuPatches/CraftingPagePatch.cs +++ b/stardew-access/Patches/GameMenuPatches/CraftingPagePatch.cs @@ -17,6 +17,8 @@ namespace stardew_access.Patches { int x = Game1.getMouseX(true), y = Game1.getMouseY(true); // Mouse x and y position + handleKeyBinds(__instance, ___currentCraftingPage); + if (narrateMenuButtons(__instance, x, y)) { return; @@ -32,8 +34,6 @@ namespace stardew_access.Patches craftingPageQueryKey = ""; return; } - - handleKeyBinds(__instance, ___currentCraftingPage); } catch (Exception e) { diff --git a/stardew-access/Patches/GameMenuPatches/InventoryPagePatch.cs b/stardew-access/Patches/GameMenuPatches/InventoryPagePatch.cs index 8dc26b3..dc05fd3 100644 --- a/stardew-access/Patches/GameMenuPatches/InventoryPagePatch.cs +++ b/stardew-access/Patches/GameMenuPatches/InventoryPagePatch.cs @@ -14,6 +14,8 @@ namespace stardew_access.Patches { int x = Game1.getMouseX(true), y = Game1.getMouseY(true); // Mouse x and y position + handleKeyBinds(); + if (narrateHoveredButton(__instance, x, y)) { return; @@ -30,8 +32,6 @@ namespace stardew_access.Patches return; } - handleKeyBinds(); - // If no slot or button is hovered Cleanup(); }