|
@@ -42,6 +42,7 @@ namespace QuickStack.Patches
|
|
|
for (int slotPage = 0; slotPage < 30; slotPage++)
|
|
for (int slotPage = 0; slotPage < 30; slotPage++)
|
|
|
if (___storage[page * 30 + slotPage].id == item.id)
|
|
if (___storage[page * 30 + slotPage].id == item.id)
|
|
|
contains = true;
|
|
contains = true;
|
|
|
|
|
+
|
|
|
bool potion = item.id >= 60 && item.id <= 73;
|
|
bool potion = item.id >= 60 && item.id <= 73;
|
|
|
bool shouldTake = true;
|
|
bool shouldTake = true;
|
|
|
if (potion)
|
|
if (potion)
|
|
@@ -66,7 +67,7 @@ namespace QuickStack.Patches
|
|
|
if ((slotItemType & ItemType.NONSTACKING) == ItemType.STACKING)
|
|
if ((slotItemType & ItemType.NONSTACKING) == ItemType.STACKING)
|
|
|
{
|
|
{
|
|
|
for (int slotPage = 0; slotPage < 30; slotPage++)
|
|
for (int slotPage = 0; slotPage < 30; slotPage++)
|
|
|
- if (___storage[page * 30 + slotPage].id == item.id)
|
|
|
|
|
|
|
+ if (GadgetCoreAPI.CanItemsStack(___storage[page * 30 + slotPage], item))
|
|
|
{
|
|
{
|
|
|
while (___storage[page * 30 + slotPage].q < 9999 && item.q > 0)
|
|
while (___storage[page * 30 + slotPage].q < 9999 && item.q > 0)
|
|
|
{
|
|
{
|