Skip to content

Commit

Permalink
Sync with Framework
Browse files Browse the repository at this point in the history
  • Loading branch information
NotRyken committed Nov 26, 2024
1 parent 84e73f9 commit 703100e
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -138,24 +138,20 @@ subprojects {

String versionChangelog() {
List<String> lines = rootProject.file("CHANGELOG.md").readLines()
if ("${mod_version}".startsWith(lines.get(2).substring(3))) {
StringBuilder builder = new StringBuilder()
for (int i = 4; i < lines.size(); i++) {
String line = lines.get(i)
if (line.isBlank()) {
// pass
} else if (line.startsWith("## ")) {
break
}
else {
if (!builder.isEmpty()) builder.append("\n")
builder.append(line)
}
StringBuilder builder = new StringBuilder()
for (int i = 4; i < lines.size(); i++) {
String line = lines.get(i)
if (line.isBlank()) {
// pass
} else if (line.startsWith("## ")) {
break
}
else {
if (!builder.isEmpty()) builder.append("\n")
builder.append(line)
}
return builder.toString()
} else {
return "Error creating changelog"
}
return builder.toString()
}

static String capsLoader(String loader) {
Expand Down

0 comments on commit 703100e

Please sign in to comment.