Fix release

This commit is contained in:
modmuss50 2021-04-28 23:16:02 +01:00
parent 7d53f6d141
commit 381ef2229b
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ def yarnVersion = "${minecraft_version}+build.$build_number"
version = yarnVersion
if (ENV.BRANCH_NAME) {
def branch = ENV.BRANCH_NAME.substring(0, ENV.BRANCH_NAME.lastIndexOf('/'))
def branch = ENV.BRANCH_NAME.substring(ENV.BRANCH_NAME.lastIndexOf('/') + 1)
if (minecraft_version != branch) {
throw new IllegalStateException("Branch name (${branch}) does not match the mc version (${minecraft_version})")
}