muffin v7.5.12
This commit is contained in:
parent
3102923ce2
commit
911ed68baa
65 changed files with 2356 additions and 1539 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue