File tree Expand file tree Collapse file tree
src/main/java/de/blazemcworld/jsscripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ minecraft_version=1.19.2
66yarn_mappings =1.19.2+build.28
77loader_version =0.14.10
88# Mod Properties
9- mod_version =1.0
9+ mod_version =1.1
1010maven_group =de.blazemcworld
1111archives_base_name =jsscripts
1212# Dependencies
Original file line number Diff line number Diff line change @@ -32,10 +32,11 @@ public static void genTypesIn(String targets) {
3232 ClassLoader cl = JsScripts .class .getClassLoader ();
3333
3434 Set <String > all = new HashSet <>();
35+ Set <String > forced = new HashSet <>();
3536
3637 for (String target : targets .split (" " )) {
3738 if (!target .endsWith ("*" )) {
38- all .add (Mappings .remapClass ("named" , Mappings .current (), target ));
39+ forced .add (Mappings .remapClass ("named" , Mappings .current (), target ));
3940 }
4041 }
4142
@@ -99,7 +100,7 @@ public static void genTypesIn(String targets) {
99100 }
100101 javaClasses .close ();
101102
102- JsScripts .displayChat (Text .literal ("Found " + all .size () + " classes!" ).formatted (Formatting .AQUA ));
103+ JsScripts .displayChat (Text .literal ("Found " + ( all .size () + forced . size () ) + " classes!" ).formatted (Formatting .AQUA ));
103104
104105 all = all .stream ().filter (name -> {
105106 if (name .startsWith ("jdk" )) return false ;
@@ -109,14 +110,13 @@ public static void genTypesIn(String targets) {
109110 if (target .endsWith ("*" ) && name .startsWith (target .substring (0 , target .length () - 1 ))) {
110111 return true ;
111112 }
112- if (target .equals (name )) {
113- return true ;
114- }
115113 }
116114
117115 return false ;
118116 }).collect (Collectors .toSet ());
119117
118+ all .addAll (forced );
119+
120120 JsScripts .displayChat (Text .literal ("Of which " + all .size () + " classes match the filter." ).formatted (Formatting .AQUA ));
121121
122122 JsScripts .displayChat (Text .literal ("Starting generation..." ).formatted (Formatting .AQUA ));
You can’t perform that action at this time.
0 commit comments