Filter duplicate mod files from mod file scan data (#6855)

This commit is contained in:
Max Becker 2020-07-17 17:35:38 +00:00 committed by GitHub
parent 638d1d31de
commit 96b9a057b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -198,6 +198,7 @@ public class ModList
map(ModInfo::getOwningFile). map(ModInfo::getOwningFile).
filter(Objects::nonNull). filter(Objects::nonNull).
map(ModFileInfo::getFile). map(ModFileInfo::getFile).
distinct().
map(ModFile::getScanResult). map(ModFile::getScanResult).
collect(Collectors.toList()); collect(Collectors.toList());
} }