1
0
mirror of https://github.com/demodude4u/Factorio-FBSR.git synced 2024-11-24 08:12:21 +02:00
This commit is contained in:
Weston Rye (Demod) 2017-06-24 00:42:55 -04:00
parent eeeb53956c
commit e4797f153c

View File

@ -92,10 +92,9 @@ public final class BlueprintFinder {
}
private static void findProviders(String content, TaskReporting reporting, List<String> results) {
int initialResultCount = results.size();
for (Provider provider : Provider.values()) {
Matcher matcher = provider.pattern.matcher(content);
if (matcher.find()) {
while (matcher.find()) {
try {
provider.mapper.matched(matcher, in -> {
try {
@ -108,9 +107,6 @@ public final class BlueprintFinder {
reporting.addException(e);
}
}
if (results.size() != initialResultCount) {
break;
}
}
}