Bug fix in bundle menu
parent
99961d8e62
commit
49be1d3e6b
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue