Bug fix in bundle menu

master
Mohammad Shoaib 2022-03-19 14:12:47 +05:30
parent 99961d8e62
commit 49be1d3e6b
2 changed files with 4 additions and 5 deletions

View File

@ -105,7 +105,6 @@ namespace stardew_access.Patches
else else
toSpeak = response; toSpeak = response;
MainClass.ErrorLog(toSpeak);
MainClass.GetScreenReader().Say(toSpeak, true); MainClass.GetScreenReader().Say(toSpeak, true);
} }
} }

View File

@ -234,19 +234,19 @@ namespace stardew_access.Patches
break; break;
case 2: // For inventory slots case 2: // For inventory slots
{ {
if (__instance.inventory != null && __instance.inventory.inventory.Count >= 0) if (__instance.inventory != null && __instance.inventory.actualInventory.Count >= 0)
{ {
int prevSlotIndex = currentInventorySlot; int prevSlotIndex = currentInventorySlot;
currentInventorySlot = currentInventorySlot + (isLeftShiftPressed ? -1 : 1); currentInventorySlot = currentInventorySlot + (isLeftShiftPressed ? -1 : 1);
if (currentInventorySlot >= __instance.inventory.inventory.Count) if (currentInventorySlot >= __instance.inventory.actualInventory.Count)
if (isLeftShiftPressed) if (isLeftShiftPressed)
currentInventorySlot = __instance.inventory.inventory.Count - 1; currentInventorySlot = __instance.inventory.actualInventory.Count - 1;
else else
currentInventorySlot = 0; currentInventorySlot = 0;
if (currentInventorySlot < 0) if (currentInventorySlot < 0)
if (isLeftShiftPressed) if (isLeftShiftPressed)
currentInventorySlot = __instance.inventory.inventory.Count - 1; currentInventorySlot = __instance.inventory.actualInventory.Count - 1;
else else
currentInventorySlot = 0; currentInventorySlot = 0;