mirror of
https://github.com/demodude4u/Factorio-FBSR.git
synced 2024-11-24 08:12:21 +02:00
Resolved #81
This commit is contained in:
parent
eeeb53956c
commit
e4797f153c
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user