File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/main/java/org/mcphackers/mcp/tasks Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ protected Stage[] setStages() {
35
35
() -> {
36
36
Side [] sides = side == Side .MERGED ? new Side []{Side .CLIENT , Side .SERVER } : new Side []{side };
37
37
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 );
42
42
FileUtil .createDirectories (MCPPaths .get (mcp , BUILD ));
43
43
if (mcp .getOptions ().getBooleanParameter (TaskParameter .FULL_BUILD )) {
44
44
Files .deleteIfExists (buildJar );
Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ private void reobfuscate() throws IOException {
66
66
Map <String , String > recompHashes = gatherMD5Hashes (true );
67
67
68
68
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 );
71
71
Files .deleteIfExists (reobfJar );
72
72
RDInjector injector = new RDInjector (reobfBin );
73
73
Mappings mappings = getMappings (injector .getStorage (), localSide );
You can’t perform that action at this time.
0 commit comments