Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim-Mazurok committed May 30, 2020
1 parent 0d2aa9a commit 3eca4e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/generalCreep.js
Expand Up @@ -178,7 +178,7 @@ class GeneralCreep {
creep.say('work');
}
if (creep.memory.working) {
replanish() || upgradeController();
replanish() || build() || upgradeController();
}
else {
getEnergy() || helpers_creep_1.HelpersCreep.logError(creep, 'IDLE');
Expand Down
2 changes: 1 addition & 1 deletion src/generalCreep.ts
Expand Up @@ -275,7 +275,7 @@ export class GeneralCreep {
}

if (creep.memory.working) {
replanish() || upgradeController();
replanish() || build() || upgradeController();
} else {
getEnergy() || HelpersCreep.logError(creep, 'IDLE');
}
Expand Down

0 comments on commit 3eca4e9

Please sign in to comment.