Skip to content

Commit

Permalink
Fixed bug yannprada#15
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoretsu committed Feb 14, 2021
1 parent 15d707c commit 286e767
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cookie-garden-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ class Garden {
}

static handleYoung(config, plant, x, y) {
if (!plant.unlocked && config.autoHarvestNewSeeds) {
return;
}

if (plant.weed && config.autoHarvestWeeds) {
this.harvest(x, y);
}
Expand Down
4 changes: 4 additions & 0 deletions src/Garden.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ class Garden {
}

static handleYoung(config, plant, x, y) {
if (!plant.unlocked && config.autoHarvestNewSeeds) {
return;
}

if (plant.weed && config.autoHarvestWeeds) {
this.harvest(x, y);
}
Expand Down

0 comments on commit 286e767

Please sign in to comment.