Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a283ea commit a813bcbCopy full SHA for a813bcb
1 file changed
plugins/autofarm.cpp
@@ -341,7 +341,7 @@ class AutoFarm {
341
342
for (auto& th : thresholds)
343
{
344
- if (lastCounts.find(th.first) != lastCounts.end())
+ if (lastCounts.count(th.first) > 0)
345
continue;
346
auto plant = world->raws.plants.all[th.first];
347
out << plant->id << " limit " << getThreshold(th.first) << " current 0" << '\n';
0 commit comments