Skip to content

Commit

Permalink
Include mc version in mod version
Browse files Browse the repository at this point in the history
  • Loading branch information
Swedz committed Sep 7, 2024
1 parent e1bbfc9 commit 266a21c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ configurations {
compileClasspath.extendsFrom localImplementation
}

var versionSimple = System.getenv("MOD_VERSION") ?: "0.0.0-local"
version = "${versionSimple}-${minecraft_version}"
version = (System.getenv("MOD_VERSION") ?: "0.0.0-local") + "-${minecraft_version}"
group = mod_group_id
base {
archivesName = artifact_name
Expand Down Expand Up @@ -230,7 +229,7 @@ tasks.withType(ProcessResources).configureEach {
loader_version_range : loader_version_range,
mod_id : mod_id,
mod_name : mod_name,
mod_version : versionSimple,
mod_version : version,
mod_authors : mod_authors,
mod_description : mod_description,
mod_github : mod_github,
Expand Down

0 comments on commit 266a21c

Please sign in to comment.