Fix gathering the wrong items
authorLiza Carvelli <liza@carvel.li>
Tue, 12 Aug 2025 20:36:36 +0000 (22:36 +0200)
committerLiza Carvelli <liza@carvel.li>
Tue, 12 Aug 2025 20:36:36 +0000 (22:36 +0200)
Questionable/Controller/Steps/Gathering/DoGather.cs

index e9abd7d06319e41e4b970f510d5beb5a04b53358..c7636f6d35c9c33d623d002fe4ca94a93978cb9a 100644 (file)
@@ -138,7 +138,7 @@ internal static class DoGather
             for (int i = 0; i < 8; ++i)
             {
                 // +8 = new item?
-                uint itemId = atkValues[i * 11 + 7].UInt;
+                uint itemId = addonGathering->ItemIds[i];
                 if (itemId == 0)
                     continue;
 
@@ -161,6 +161,7 @@ internal static class DoGather
                 slots.Add(slot);
             }
 
+            logger.LogTrace("Slots: {Slots}", string.Join(", ", slots));
             return slots;
         }