improve mod collection
All checks were successful
Publish to snapshot maven / build (push) Successful in 18s
All checks were successful
Publish to snapshot maven / build (push) Successful in 18s
This commit is contained in:
parent
3ecd0ba812
commit
5a65161113
|
@ -153,11 +153,8 @@ public class FrogLoaderImpl implements FrogLoader {
|
||||||
}
|
}
|
||||||
|
|
||||||
private Map<String, ModProperties> collectMods() {
|
private Map<String, ModProperties> collectMods() {
|
||||||
Collection<ModProperties> properties = plugins.stream().map(FrogPlugin::getMods).reduce(new HashSet<>(), (s1, s2) -> {
|
return plugins.stream().map(FrogPlugin::getMods).flatMap(Collection::stream)
|
||||||
s1.addAll(s2);
|
.collect(Collectors.toMap(ModProperties::id, m -> m));
|
||||||
return s1;
|
|
||||||
});
|
|
||||||
return properties.stream().collect(Collectors.toMap(ModProperties::id, m -> m));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private Collection<String> collectModIds() {
|
private Collection<String> collectModIds() {
|
||||||
|
|
Loading…
Reference in a new issue