1
0
Fork 0
forked from aly/qstbak

muffin v7.5.12

This commit is contained in:
alydev 2026-08-19 13:19:57 +10:00
parent 3102923ce2
commit 911ed68baa
65 changed files with 2356 additions and 1539 deletions

View file

@ -106,9 +106,19 @@ internal static class DoGather
else
{
List<SlotInfo> list = ReadSlots(addonPtr2);
if (list.Count == 0)
{
return ETaskResult.StillRunning;
}
if (base.Task.Request.Collectability > 0)
{
SlotInfo slotInfo = list.Single((SlotInfo x) => x.ItemId == base.Task.Request.ItemId);
SlotInfo slotInfo = list.FirstOrDefault((SlotInfo x) => x.ItemId == base.Task.Request.ItemId);
if (!(slotInfo != null))
{
logger.LogDebug("Requested collectable {ItemId} is not available at this node", base.Task.Request.ItemId);
addonPtr2->FireCallbackInt(-1);
return ETaskResult.TaskComplete;
}
addonPtr2->FireCallbackInt(slotInfo.Index);
}
else