From 464f2eef6029cf28df665022d07ade11cd930f96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?der=5Ffr=C3=BChling?= Date: Tue, 9 Apr 2024 14:12:00 -0700 Subject: [PATCH] Template mod_id in Fabric mod --- fabric/build.gradle | 3 ++- fabric/src/main/resources/fabric.mod.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fabric/build.gradle b/fabric/build.gradle index 1a205b8..c943ab6 100644 --- a/fabric/build.gradle +++ b/fabric/build.gradle @@ -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 } } diff --git a/fabric/src/main/resources/fabric.mod.json b/fabric/src/main/resources/fabric.mod.json index 6896435..ed225e0 100644 --- a/fabric/src/main/resources/fabric.mod.json +++ b/fabric/src/main/resources/fabric.mod.json @@ -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}",