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 d68eac3 commit 1a6ec35
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 21 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@ ClientSort uses Siphalor's sorting algorithm from Mouse Wheelie, under license.
Mouse Wheelie is available on [Modrinth](https://modrinth.com/mod/u5Ic2U1u) and
[GitHub](https://github.com/Siphalor/mouse-wheelie/releases).

### License

[Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0)

### Contact

[![Discord Server](https://img.shields.io/discord/1103153365216669797?logo=discord&label=Discord%20Server&color=%235865F2)](https://discord.terminalmc.dev)

[![GitHub Issues](https://img.shields.io/github/issues/TerminalMC/ClientSort?logo=github&label=GitHub%20Issues)](https://github.com/TerminalMC/ClientSort/issues)

[![License](https://img.shields.io/github/license/TerminalMC/ChatNotify?label=License&logo=github&logoColor=white)](https://github.com/TerminalMC/ChatNotify/blob/HEAD/LICENSE.txt)
28 changes: 12 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -148,24 +148,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
2 changes: 1 addition & 1 deletion common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies {
compileOnly("org.spongepowered:mixin:${mixin_version}")
compileOnly(annotationProcessor("io.github.llamalad7:mixinextras-common:${mixinextras_version}"))

// Mod dependencies use NeoForge version to avoid remapping complications
// Cloth Config API
api("me.shedaniel.cloth:cloth-config-neoforge:${clothconfig_version}")
}

Expand Down

0 comments on commit 1a6ec35

Please sign in to comment.