Skip to content

Commit 3db5604

Browse files
committed
fix infinity loop on missing resource
1 parent 707a6e2 commit 3db5604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TbsCore/Tasks/LowLevel/UpgradeBuilding.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public override async Task<TaskRes> Execute(Account acc)
124124
acc.Logger.Warning($"Not enough resources to construct {_buildingTask.Building} - Level {_buildingTask.Level}! Needed {cost}. Bot will try finish the task later", this);
125125
DateTime enoughRes = TimeHelper.EnoughResToUpgrade(Vill, stillNeededRes);
126126
NextExecute = TimeHelper.RanDelay(acc, enoughRes);
127-
continue;
127+
return TaskRes.Executed;
128128
}
129129
var heroRes = HeroHelper.GetHeroResources(acc);
130130

0 commit comments

Comments
 (0)