File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/main/java/de/blazemcworld/jsscripts Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ minecraft_version=1.19.2
6
6
yarn_mappings =1.19.2+build.28
7
7
loader_version =0.14.10
8
8
# Mod Properties
9
- mod_version =1.0
9
+ mod_version =1.1
10
10
maven_group =de.blazemcworld
11
11
archives_base_name =jsscripts
12
12
# Dependencies
Original file line number Diff line number Diff line change @@ -32,10 +32,11 @@ public static void genTypesIn(String targets) {
32
32
ClassLoader cl = JsScripts .class .getClassLoader ();
33
33
34
34
Set <String > all = new HashSet <>();
35
+ Set <String > forced = new HashSet <>();
35
36
36
37
for (String target : targets .split (" " )) {
37
38
if (!target .endsWith ("*" )) {
38
- all .add (Mappings .remapClass ("named" , Mappings .current (), target ));
39
+ forced .add (Mappings .remapClass ("named" , Mappings .current (), target ));
39
40
}
40
41
}
41
42
@@ -99,7 +100,7 @@ public static void genTypesIn(String targets) {
99
100
}
100
101
javaClasses .close ();
101
102
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 ));
103
104
104
105
all = all .stream ().filter (name -> {
105
106
if (name .startsWith ("jdk" )) return false ;
@@ -109,14 +110,13 @@ public static void genTypesIn(String targets) {
109
110
if (target .endsWith ("*" ) && name .startsWith (target .substring (0 , target .length () - 1 ))) {
110
111
return true ;
111
112
}
112
- if (target .equals (name )) {
113
- return true ;
114
- }
115
113
}
116
114
117
115
return false ;
118
116
}).collect (Collectors .toSet ());
119
117
118
+ all .addAll (forced );
119
+
120
120
JsScripts .displayChat (Text .literal ("Of which " + all .size () + " classes match the filter." ).formatted (Formatting .AQUA ));
121
121
122
122
JsScripts .displayChat (Text .literal ("Starting generation..." ).formatted (Formatting .AQUA ));
You can’t perform that action at this time.
0 commit comments