Skip to content

Commit bb8f721

Browse files
committed
change ver & small fix
1 parent ce60de1 commit bb8f721

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ minecraft_version=1.19.2
66
yarn_mappings=1.19.2+build.28
77
loader_version=0.14.10
88
# Mod Properties
9-
mod_version=1.0
9+
mod_version=1.1
1010
maven_group=de.blazemcworld
1111
archives_base_name=jsscripts
1212
# Dependencies

src/main/java/de/blazemcworld/jsscripts/TypingGen.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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));

0 commit comments

Comments
 (0)