Skip to content

Commit

Permalink
Add back Pufferfish patch
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaKR93 committed May 14, 2024
1 parent 6e591f2 commit 63e37b3
Show file tree
Hide file tree
Showing 41 changed files with 5,472 additions and 525 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fun Project.getLatest(repository: String, branch: String) : String {
val regex = "[a-z0-9]{40}\trefs/heads/$branch".toRegex()
val temp = Git(project.pathIO)("ls-remote", repository).readText()

return temp?.lines()?.first { regex.matches(it) }?.split("\t")?.first()
return temp?.lines()?.first(regex::matches)?.split("\t")?.first()
?: throw AlwaysUpToDateException("Failed to get latest commit of $repository")
}

Expand Down
7 changes: 4 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ jdkVersion = 21

paperRepo = https://github.com/PaperMC/Paper
paperBranch = master
purpurRepo = https://github.com/PurpurMC/Purpur
purpurRepo = https://github.com/PlazmaMC/Purpur
purpurBranch = ver/1.20.6
pufferfishRepo = https://github.com/PlazmaMC/Pufferfish
pufferfishBranch = ver/1.20
usePufferfish = false
usePufferfish = true

paperCommit = 3fc93581bb876e8149b2ca423375a98f5ca12d27
purpurCommit = c637b74bade41e7be96ed3478bab7c3b923e7d84
purpurCommit = 24b161b1be559e7f84d881f9cabe2830d693e621
Loading

0 comments on commit 63e37b3

Please sign in to comment.