Skip to content

Commit

Permalink
Include game version to fabric.mod.json files
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianMichael committed Feb 3, 2024
1 parent 1b90d31 commit 8fc4f39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ preprocess {
}

processResources {
inputs.property "version", project.version
inputs.properties version: project.version, mcversion: project.minecraft_version

filesMatching("fabric.mod.json") {
expand "version": project.version
expand "version": project.version, "mcversion": project.minecraft_version
}
}

Expand Down
1 change: 1 addition & 0 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
],
"depends": {
"fabricloader": ">=0.15.0",
"minecraft": "~${mcversion}",
"java": ">=17",
"fabric-api": "*"
},
Expand Down

0 comments on commit 8fc4f39

Please sign in to comment.