Remove duplicate mc version in the version

This commit is contained in:
Sollace 2021-03-07 18:04:47 +02:00
parent be1585f3f5
commit 76510f7a52

View file

@ -14,13 +14,13 @@ def createVersion() {
parts.push project.release parts.push project.release
} }
if (System.env.TRAVIS_BRANCH != null && System.env.TRAVIS_BRANCH != 'master') { def branch = System.env.TRAVIS_BRANCH
parts.push System.env.TRAVIS_BRANCH
if (branch != null && branch != 'master' && !project.minecraft_version.startsWith(branch)) {
parts.push branch
} }
if (System.env.TRAVIS_BRANCH != project.minecraft_version) { parts.push project.minecraft_version
parts.push project.minecraft_version
}
def ver = project.version def ver = project.version
if (parts.size > 0) { if (parts.size > 0) {