Skip to content

Commit

Permalink
Template mod_id in Fabric mod
Browse files Browse the repository at this point in the history
  • Loading branch information
der_frühling committed Apr 9, 2024
1 parent 981fff9 commit 464f2ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ dependencies {

processResources {
inputs.property "version", project.version
inputs.property "mod_id", rootProject.mod_id

filesMatching("fabric.mod.json") {
expand "version": project.version
expand "version": project.version, "mod_id": rootProject.mod_id
}
}

Expand Down
2 changes: 1 addition & 1 deletion fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
"id": "create_train_perspective",
"id": "${mod_id}",
"name": "Create: Train Perspective",
"description": "Moves your camera (and body!) with the Create Mod train you're riding to increase immersion!",
"version": "${version}",
Expand Down

0 comments on commit 464f2ee

Please sign in to comment.