Skip to content

Commit 18b2caf

Browse files
committed
Fix merged reobfuscation... not sure why this stopped working.
1 parent fd1c4e0 commit 18b2caf

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/java/org/mcphackers/mcp/tasks/TaskBuild.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ protected Stage[] setStages() {
3535
() -> {
3636
Side[] sides = side == Side.MERGED ? new Side[]{Side.CLIENT, Side.SERVER} : new Side[]{side};
3737
for (Side localSide : sides) {
38-
Path originalJar = MCPPaths.get(mcp, JAR_ORIGINAL, localSide);
39-
Path reobfDir = MCPPaths.get(mcp, REOBF_SIDE, localSide);
40-
Path buildJar = MCPPaths.get(mcp, BUILD_JAR, localSide);
41-
Path buildZip = MCPPaths.get(mcp, BUILD_ZIP, localSide);
38+
Path originalJar = MCPPaths.get(mcp, JAR_ORIGINAL, side == Side.MERGED ? Side.MERGED : localSide);
39+
Path reobfDir = MCPPaths.get(mcp, REOBF_SIDE, side == Side.MERGED ? Side.MERGED : localSide);
40+
Path buildJar = MCPPaths.get(mcp, BUILD_JAR, side == Side.MERGED ? Side.MERGED : localSide);
41+
Path buildZip = MCPPaths.get(mcp, BUILD_ZIP, side == Side.MERGED ? Side.MERGED : localSide);
4242
FileUtil.createDirectories(MCPPaths.get(mcp, BUILD));
4343
if (mcp.getOptions().getBooleanParameter(TaskParameter.FULL_BUILD)) {
4444
Files.deleteIfExists(buildJar);

src/main/java/org/mcphackers/mcp/tasks/TaskReobfuscate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ private void reobfuscate() throws IOException {
6666
Map<String, String> recompHashes = gatherMD5Hashes(true);
6767

6868
for (Side localSide : sides) {
69-
final Path reobfDir = MCPPaths.get(mcp, REOBF_SIDE, localSide);
70-
final Path reobfJar = MCPPaths.get(mcp, REOBF_JAR, localSide);
69+
final Path reobfDir = MCPPaths.get(mcp, REOBF_SIDE, side == Side.MERGED ? Side.MERGED : localSide);
70+
final Path reobfJar = MCPPaths.get(mcp, REOBF_JAR, side == Side.MERGED ? Side.MERGED : localSide);
7171
Files.deleteIfExists(reobfJar);
7272
RDInjector injector = new RDInjector(reobfBin);
7373
Mappings mappings = getMappings(injector.getStorage(), localSide);

0 commit comments

Comments
 (0)