Skip to content

Commit

Permalink
Rename MinecraftPatchedProvider jar paths on NeoForge
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Oct 31, 2023
1 parent 53f82da commit 9aba46e
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public class MinecraftPatchedProvider {
private final MinecraftProvider minecraftProvider;
private final Type type;

// TODO (Neo): Rename all these srg -> "intermediate"
// Step 1: Remap Minecraft to SRG, merge if needed
private Path minecraftSrgJar;
// Step 2: Binary Patch
Expand Down Expand Up @@ -141,9 +142,10 @@ private void initPatchedFiles() {

minecraftProvider.setJarPrefix(patchId);

minecraftSrgJar = forgeWorkingDir.resolve("minecraft-" + type.id + "-srg.jar");
minecraftPatchedSrgJar = forgeWorkingDir.resolve("minecraft-" + type.id + "-srg-patched.jar");
minecraftPatchedSrgAtJar = forgeWorkingDir.resolve("minecraft-" + type.id + "-srg-at-patched.jar");
final String intermediateId = getExtension().isNeoForge() ? "mojang" : "srg";
minecraftSrgJar = forgeWorkingDir.resolve("minecraft-" + type.id + "-" + intermediateId + ".jar");
minecraftPatchedSrgJar = forgeWorkingDir.resolve("minecraft-" + type.id + "-" + intermediateId + "-patched.jar");
minecraftPatchedSrgAtJar = forgeWorkingDir.resolve("minecraft-" + type.id + "-" + intermediateId + "-at-patched.jar");
minecraftPatchedJar = forgeWorkingDir.resolve("minecraft-" + type.id + "-patched.jar");
minecraftClientExtra = forgeWorkingDir.resolve("client-extra.jar");
}
Expand Down

0 comments on commit 9aba46e

Please sign in to comment.