mirror of
https://github.com/demodude4u/Factorio-FBSR.git
synced 2024-11-27 08:20:57 +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) {
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user