Skip to content

Commit e7087d3

Browse files
committed
Fix duplicate recycle message
1 parent 30d8481 commit e7087d3

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

PoGo.PokeMobBot.Logic/Tasks/RecycleItemsTask.cs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -260,28 +260,6 @@ private static async Task OptimizedRecycleRevives(ISession session, Cancellation
260260
await DelayingUtils.Delay(session.LogicSettings.DelayBetweenPlayerActions, 500);
261261
}
262262
}
263-
264-
if (diff > 0)
265-
{
266-
int maxRevivesToKeep = maxReviveCount - diff;
267-
if (maxRevivesToKeep < 0)
268-
{
269-
maxRevivesToKeep = 0;
270-
}
271-
maxRevivesToRecycle = maxReviveCount - maxRevivesToKeep;
272-
273-
if (maxRevivesToRecycle != 0)
274-
{
275-
diff -= maxRevivesToRecycle;
276-
cancellationToken.ThrowIfCancellationRequested();
277-
await session.Client.Inventory.RecycleItem(ItemId.ItemMaxRevive, maxRevivesToRecycle);
278-
session.EventDispatcher.Send(new ItemRecycledEvent { Id = ItemId.ItemMaxRevive, Count = maxRevivesToRecycle });
279-
if (session.LogicSettings.Teleport)
280-
await Task.Delay(session.LogicSettings.DelayRecyleItem);
281-
else
282-
await DelayingUtils.Delay(session.LogicSettings.DelayBetweenPlayerActions, 500);
283-
}
284-
}
285263
}
286264
}
287265
}

0 commit comments

Comments
 (0)