mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-11 13:47:30 +00:00
oops
This commit is contained in:
1 file changed
+2
-2
@@ -92,11 +92,11 @@ public interface IMixinPlugin extends IMixinConfigPlugin {
|
||||
static Set<File> findJarsOf(IMixinPlugin self, final ITargetedMod mod) {
|
||||
if (!self.useNewFindJar()) {
|
||||
val jar = findJarOf(mod);
|
||||
return jar == null ? Collections.emptySet() : Set.of(jar);
|
||||
return jar == null ? Collections.emptySet() : Collections.singleton(jar);
|
||||
}
|
||||
val results = new HashSet<File>();
|
||||
try (val stream = walk(MODS_DIRECTORY_PATH)) {
|
||||
results.addAll(stream.filter(mod::isMatchingJar).map(Path::toFile).toList());
|
||||
results.addAll(stream.filter(mod::isMatchingJar).map(Path::toFile).collect(Collectors.toSet()));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user