Skip to content

Commit

Permalink
feat: add conscrypt + bug fix null parent
Browse files Browse the repository at this point in the history
  • Loading branch information
terminalsin committed Nov 13, 2024
1 parent 22721e3 commit 1fb9e5b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ public Integer call() {
}

if (exempt != null) {
final File converted = new File(exempt.getAbsolutePath()
.substring(0, exempt.getAbsolutePath().lastIndexOf("/")) + "/config.hocon");
final File converted = new File(new File(exempt.getAbsolutePath()).getParentFile().getAbsolutePath(), "config.hocon");
final String warning = "\n" + ConsoleColors.YELLOW
+ "██╗ ██╗ █████╗ ██████╗ ███╗ ██╗██╗███╗ ██╗ ██████╗ \n"
+ "██║ ██║██╔══██╗██╔══██╗████╗ ██║██║████╗ ██║██╔════╝ \n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static void printLogo() {
" │ " + topMemory + " │",
" └───────────────────────────────────────────┘",
"",
" Author: Ghast Version: 2.0.8 Today: "
" Author: Ghast Version: 2.0.10 Today: "
+ DateFormat.getDateTimeInstance().format(new Date(Instant.now().toEpochMilli())),
""
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ public enum CommonDependency {
public boolean test(List<String> strings) {
return strings.stream().anyMatch(e -> e.contains("org/bukkit"));
}
});
}),
CONSCRYPT("https://raw.githubusercontent.com/skidfuscatordev/mappings/refs/heads/main/conscrypt/2.5.2/org.conscrypt.conscrypt-openjdk-uber-2.5.2.json", new DependencyMatcher() {
@Override
public boolean test(List<String> strings) {
return strings.stream().anyMatch(e -> e.contains("org/conscrypt"));
}
})
;

private final String url;
private final DependencyMatcher matcher;
Expand Down

0 comments on commit 1fb9e5b

Please sign in to comment.