File tree 1 file changed +2
-1
lines changed
src/main/java/org/mcsr/speedrunapi/mixin/resourceloader
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 18
18
import java .nio .file .Files ;
19
19
import java .nio .file .Path ;
20
20
import java .util .*;
21
+ import java .util .regex .Matcher ;
21
22
import java .util .stream .Stream ;
22
23
23
24
@ Mixin (DefaultClientResourcePack .class )
@@ -44,7 +45,7 @@ public abstract class DefaultClientResourcePackMixin {
44
45
45
46
Set <String > namespaces = new HashSet <>();
46
47
try (Stream <Path > stream = Files .list (assets )) {
47
- stream .filter (Files ::isDirectory ).forEach (path -> namespaces .add (path .getFileName ().toString ()));
48
+ stream .filter (Files ::isDirectory ).forEach (path -> namespaces .add (path .getFileName ().toString (). replaceAll ( Matcher . quoteReplacement ( "[/ \\ ]" ), "" ) ));
48
49
} catch (IOException e ) {
49
50
SpeedrunAPI .LOGGER .error ("SpeedrunAPI failed to check resources for mod: {}" , mod .getMetadata ().getId ());
50
51
}
You can’t perform that action at this time.
0 commit comments