Skip to content

Commit 266a21c

Browse files
committed
Include mc version in mod version
1 parent e1bbfc9 commit 266a21c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ configurations {
1212
compileClasspath.extendsFrom localImplementation
1313
}
1414

15-
var versionSimple = System.getenv("MOD_VERSION") ?: "0.0.0-local"
16-
version = "${versionSimple}-${minecraft_version}"
15+
version = (System.getenv("MOD_VERSION") ?: "0.0.0-local") + "-${minecraft_version}"
1716
group = mod_group_id
1817
base {
1918
archivesName = artifact_name
@@ -230,7 +229,7 @@ tasks.withType(ProcessResources).configureEach {
230229
loader_version_range : loader_version_range,
231230
mod_id : mod_id,
232231
mod_name : mod_name,
233-
mod_version : versionSimple,
232+
mod_version : version,
234233
mod_authors : mod_authors,
235234
mod_description : mod_description,
236235
mod_github : mod_github,

0 commit comments

Comments
 (0)