File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/com/falsepattern/lib/mixin Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -92,11 +92,11 @@ static File findJarOf(final ITargetedMod mod) {
92
92
static Set <File > findJarsOf (IMixinPlugin self , final ITargetedMod mod ) {
93
93
if (!self .useNewFindJar ()) {
94
94
val jar = findJarOf (mod );
95
- return jar == null ? Collections .emptySet () : Set . of (jar );
95
+ return jar == null ? Collections .emptySet () : Collections . singleton (jar );
96
96
}
97
97
val results = new HashSet <File >();
98
98
try (val stream = walk (MODS_DIRECTORY_PATH )) {
99
- results .addAll (stream .filter (mod ::isMatchingJar ).map (Path ::toFile ).toList ( ));
99
+ results .addAll (stream .filter (mod ::isMatchingJar ).map (Path ::toFile ).collect ( Collectors . toSet () ));
100
100
} catch (Exception e ) {
101
101
e .printStackTrace ();
102
102
}
You can’t perform that action at this time.
0 commit comments