forked from liza/Deliveroo
Don't loop gc exchange an additonal time when buying
This commit is contained in:
parent
1abcda7089
commit
1633b4390a
@ -177,7 +177,8 @@ partial class DeliverooPlugin
|
|||||||
|
|
||||||
if (SelectSelectYesno(0, s => s.StartsWith("Exchange ")))
|
if (SelectSelectYesno(0, s => s.StartsWith("Exchange ")))
|
||||||
{
|
{
|
||||||
if (GetNextItemToPurchase(item) != null)
|
var nextItem = GetNextItemToPurchase(item);
|
||||||
|
if (nextItem != null && GetCurrentSealCount() >= _configuration.ReservedSealCount + nextItem.SealCost)
|
||||||
CurrentStage = Stage.SelectRewardTier;
|
CurrentStage = Stage.SelectRewardTier;
|
||||||
else
|
else
|
||||||
CurrentStage = Stage.CloseGcExchange;
|
CurrentStage = Stage.CloseGcExchange;
|
||||||
|
Loading…
Reference in New Issue
Block a user