From 703100e8ba154cbf76d03f65c33cd6ba84147c2c Mon Sep 17 00:00:00 2001 From: NotRyken <127091011+NotRyken@users.noreply.github.com> Date: Tue, 26 Nov 2024 10:20:59 +0800 Subject: [PATCH] Sync with Framework --- build.gradle | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/build.gradle b/build.gradle index 400cfc0..b55b952 100644 --- a/build.gradle +++ b/build.gradle @@ -138,24 +138,20 @@ subprojects { String versionChangelog() { List 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) {