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) {
9292 static Set <File > findJarsOf (IMixinPlugin self , final ITargetedMod mod ) {
9393 if (!self .useNewFindJar ()) {
9494 val jar = findJarOf (mod );
95- return jar == null ? Collections .emptySet () : Set . of (jar );
95+ return jar == null ? Collections .emptySet () : Collections . singleton (jar );
9696 }
9797 val results = new HashSet <File >();
9898 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 () ));
100100 } catch (Exception e ) {
101101 e .printStackTrace ();
102102 }
You can’t perform that action at this time.
0 commit comments