remove check for discovered plants in autofarm

Remove limitation on planting only "discovered" plants in autofarm because there was never any reason for doing so.

Resolves #1988.
develop
Kelly Kinkade 2022-03-15 09:29:33 -05:00 committed by Myk
parent dda487a535
commit d25cd0874a
1 changed files with 5 additions and 8 deletions

@ -188,14 +188,11 @@ public:
for (auto &ci : counts)
{
if (df::global::ui->tasks.discovered_plants[ci.first])
{
df::plant_raw* plant = world->raws.plants.all[ci.first];
if (is_plantable(plant))
for (auto &flagmap : biomeFlagMap)
if (plant->flags.is_set(flagmap.first))
plantable_plants[plant->index].insert(flagmap.second);
}
df::plant_raw* plant = world->raws.plants.all[ci.first];
if (is_plantable(plant))
for (auto &flagmap : biomeFlagMap)
if (plant->flags.is_set(flagmap.first))
plantable_plants[plant->index].insert(flagmap.second);
}
}