From 76510f7a5271c844d998925ee0154b2956dd56f8 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 7 Mar 2021 18:04:47 +0200 Subject: [PATCH] Remove duplicate mc version in the version --- build.gradle | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 8e545cc0..2ba0d5b5 100644 --- a/build.gradle +++ b/build.gradle @@ -14,13 +14,13 @@ def createVersion() { parts.push project.release } - if (System.env.TRAVIS_BRANCH != null && System.env.TRAVIS_BRANCH != 'master') { - parts.push System.env.TRAVIS_BRANCH + def branch = 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 if (parts.size > 0) {