diff --git a/Fabric/build.gradle.kts b/Fabric/build.gradle.kts index de845dd..d2ccf2d 100644 --- a/Fabric/build.gradle.kts +++ b/Fabric/build.gradle.kts @@ -3,6 +3,7 @@ plugins { id("fabric-loom") version "0.9-SNAPSHOT" } +val modId: String by project val minecraftVersion: String by project val fabricVersion: String by project @@ -28,6 +29,10 @@ loom { ideConfigGenerated(true) } } + + mixin { + add(sourceSets.main.get(), "$modId.refmap.json") + } } tasks.processResources { diff --git a/build.gradle.kts b/build.gradle.kts index e19876f..42e343c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -95,14 +95,14 @@ subprojects { manifest { attributes( - "Specification-Title" to modName, + "Specification-Title" to modId, "Specification-Vendor" to modAuthor, "Specification-Version" to "1", - "Implementation-Title" to "$modName-${project.name}", - "Implementation-Version" to modVersion, + "Implementation-Title" to "${modName.replace(" ", "")}-${project.name}", "Implementation-Vendor" to modAuthor, + "Implementation-Version" to modVersion, "Implementation-Timestamp" to SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").format(Date()), - "MixinConfigs" to "$modId.mixin.json" + "MixinConfigs" to "$modId.mixins.json" ) } } diff --git a/src/main/resources/bettercontrols.mixins.json b/src/main/resources/bettercontrols.mixins.json index b429c51..0d64674 100644 --- a/src/main/resources/bettercontrols.mixins.json +++ b/src/main/resources/bettercontrols.mixins.json @@ -2,6 +2,7 @@ "required": true, "minVersion": "0.8", "package": "chylex.bettercontrols.mixin", + "refmap": "bettercontrols.refmap.json", "compatibilityLevel": "JAVA_16", "client": [ "AccessCameraFields",