Skip to content

Commit

Permalink
chore: Always make mc-dev-sources when applying patches
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Bjarne Koll <[email protected]>
  • Loading branch information
s-yh-china and lynxplay committed Nov 16, 2024
1 parent e717ec1 commit 6ca8067
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,10 @@ abstract class PatcherApplyGitPatches : ControllableOutputTask() {
git("tag", "-d", "base").runSilently(silenceErr = true)
git("tag", "base").executeSilently()

applyGitPatches(git, target, output, patchDir.pathOrNull, printOutput.get(), verbose.get())

makeMcDevSrc(layout.cache, sourceMcDevJar.path, mcDevSources.path, outputDir.path, srcDir, dataDir)
try {
applyGitPatches(git, target, output, patchDir.pathOrNull, printOutput.get(), verbose.get())
} finally {
makeMcDevSrc(layout.cache, sourceMcDevJar.path, mcDevSources.path, outputDir.path, srcDir, dataDir)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,11 @@ abstract class ApplyPaperPatches : ControllableOutputTask() {
git("tag", "-d", "base").runSilently(silenceErr = true)
git("tag", "base").executeSilently()

applyGitPatches(git, target, outputFile, patchDir.path, printOutput.get(), verbose.get())

makeMcDevSrc(layout.cache, sourceMcDevJar.path, mcDevSources.path, outputDir.path, sourceDir, mcDataDir)
try {
applyGitPatches(git, target, outputFile, patchDir.path, printOutput.get(), verbose.get())
} finally {
makeMcDevSrc(layout.cache, sourceMcDevJar.path, mcDevSources.path, outputDir.path, sourceDir, mcDataDir)
}
}
}

Expand Down

0 comments on commit 6ca8067

Please sign in to comment.