Run command registration after main method

- Fixes commands being missing for certain mods
- Possibly fix #67
This commit is contained in:
Martin Prokoph
2024-09-02 23:47:58 +02:00
parent 48390abf8f
commit b8a54e339a
6 changed files with 18 additions and 16 deletions

View File

@@ -50,7 +50,7 @@ allprojects {
releaseChangelog = {
def changes = new StringBuilder()
changes << "## MidnightLib v$project.version for $project.minecraft_version\n[View the changelog](https://www.github.com/TeamMidnightDust/MidnightLib/commits/)"
def proc = "git log --max-count=10 --pretty=format:%s".execute()
def proc = "git log --max-count=1 --pretty=format:%s".execute()
proc.in.eachLine { line ->
def processedLine = line.toString()
if (!processedLine.contains("New translations") && !processedLine.contains("Merge") && !processedLine.contains("branch")) {