From 119cedb5621971ffe3ff6c871117706202ff789e Mon Sep 17 00:00:00 2001 From: Kyle Wood Date: Sun, 5 May 2024 17:18:47 -0500 Subject: [PATCH] Remove unnecessary hardcoded main class --- codebook-cli/src/main/java/io/papermc/codebook/cli/Main.java | 2 +- src/main/java/io/papermc/codebook/pages/RemapJarPage.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/codebook-cli/src/main/java/io/papermc/codebook/cli/Main.java b/codebook-cli/src/main/java/io/papermc/codebook/cli/Main.java index ce94d1b..70c6219 100644 --- a/codebook-cli/src/main/java/io/papermc/codebook/cli/Main.java +++ b/codebook-cli/src/main/java/io/papermc/codebook/cli/Main.java @@ -469,7 +469,7 @@ private CodeBookContext createContext() { } return CodeBookContext.builder() - .tempDir(tempDir) + .tempDir(this.tempDir) .remapperJar(remapper) .mappings(mappings) .paramMappings(paramMappings) diff --git a/src/main/java/io/papermc/codebook/pages/RemapJarPage.java b/src/main/java/io/papermc/codebook/pages/RemapJarPage.java index 8646b51..902677f 100644 --- a/src/main/java/io/papermc/codebook/pages/RemapJarPage.java +++ b/src/main/java/io/papermc/codebook/pages/RemapJarPage.java @@ -56,7 +56,6 @@ public void exec() { final Path remapped = this.tempDir.resolve("remapped.jar"); JarRunner.of("AutoRenamingTool", this.remapper) - .withMainClass("net.minecraftforge.fart.Main") .withArgs( "--input=" + IOUtil.absolutePathString(this.inputJar), "--output=" + IOUtil.absolutePathString(remapped),