1
0
mirror of https://github.com/demodude4u/Factorio-FBSR.git synced 2024-11-27 08:20:57 +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) { private static void findProviders(String content, TaskReporting reporting, List<String> results) {
int initialResultCount = results.size();
for (Provider provider : Provider.values()) { for (Provider provider : Provider.values()) {
Matcher matcher = provider.pattern.matcher(content); Matcher matcher = provider.pattern.matcher(content);
if (matcher.find()) { while (matcher.find()) {
try { try {
provider.mapper.matched(matcher, in -> { provider.mapper.matched(matcher, in -> {
try { try {
@ -108,9 +107,6 @@ public final class BlueprintFinder {
reporting.addException(e); reporting.addException(e);
} }
} }
if (results.size() != initialResultCount) {
break;
}
} }
} }