[FIX] pro.gravit.launcher.debug

This commit is contained in:
Gravita 2021-08-10 04:30:55 +07:00
parent 2221fadace
commit b7621ef760

View file

@ -42,7 +42,6 @@ public MainBuildTask(LaunchServer srv) {
reader = new ClassMetadataReader();
InjectClassAcceptor injectClassAcceptor = new InjectClassAcceptor(properties);
transformers.add(injectClassAcceptor);
blacklist.add("pro/gravit/launcher/debug/");
}
@Override
@ -63,7 +62,7 @@ public Path process(Path inputJar) throws IOException {
for (Path e : server.launcherBinary.coreLibs) {
reader.getCp().add(new JarFile(e.toFile()));
}
context.pushJarFile(inputJar, (e) -> blacklist.contains(e.getName()), (e) -> true);
context.pushJarFile(inputJar, (e) -> blacklist.contains(e.getName()) || e.getName().startsWith("pro/gravit/launcher/debug/"), (e) -> true);
// map for guard
Map<String, byte[]> runtime = new HashMap<>(256);