Quellcode durchsuchen

[QuickStack] [2.0.1.0] Fix CanItemsStack for CH+

Zariteis vor 4 Jahren
Ursprung
Commit
8978175b07
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      QuickStack/Patches/Patch_GameScript_Update.cs

+ 2 - 1
QuickStack/Patches/Patch_GameScript_Update.cs

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