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
toSpeak = response;
MainClass.ErrorLog(toSpeak);
MainClass.GetScreenReader().Say(toSpeak, true);
}
}

View File

@ -234,19 +234,19 @@ namespace stardew_access.Patches
break;
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;
currentInventorySlot = currentInventorySlot + (isLeftShiftPressed ? -1 : 1);
if (currentInventorySlot >= __instance.inventory.inventory.Count)
if (currentInventorySlot >= __instance.inventory.actualInventory.Count)
if (isLeftShiftPressed)
currentInventorySlot = __instance.inventory.inventory.Count - 1;
currentInventorySlot = __instance.inventory.actualInventory.Count - 1;
else
currentInventorySlot = 0;
if (currentInventorySlot < 0)
if (isLeftShiftPressed)
currentInventorySlot = __instance.inventory.inventory.Count - 1;
currentInventorySlot = __instance.inventory.actualInventory.Count - 1;
else
currentInventorySlot = 0;