1
0
mirror of https://github.com/chylex/Better-Controls.git synced 2025-05-28 22:34:04 +02:00

Fix broken mixins in runtime environment

This commit is contained in:
chylex 2021-10-03 20:33:44 +02:00
parent cbe3fa6a71
commit edf97c834a
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548
3 changed files with 10 additions and 4 deletions

View File

@ -3,6 +3,7 @@ plugins {
id("fabric-loom") version "0.9-SNAPSHOT" id("fabric-loom") version "0.9-SNAPSHOT"
} }
val modId: String by project
val minecraftVersion: String by project val minecraftVersion: String by project
val fabricVersion: String by project val fabricVersion: String by project
@ -28,6 +29,10 @@ loom {
ideConfigGenerated(true) ideConfigGenerated(true)
} }
} }
mixin {
add(sourceSets.main.get(), "$modId.refmap.json")
}
} }
tasks.processResources { tasks.processResources {

View File

@ -95,14 +95,14 @@ subprojects {
manifest { manifest {
attributes( attributes(
"Specification-Title" to modName, "Specification-Title" to modId,
"Specification-Vendor" to modAuthor, "Specification-Vendor" to modAuthor,
"Specification-Version" to "1", "Specification-Version" to "1",
"Implementation-Title" to "$modName-${project.name}", "Implementation-Title" to "${modName.replace(" ", "")}-${project.name}",
"Implementation-Version" to modVersion,
"Implementation-Vendor" to modAuthor, "Implementation-Vendor" to modAuthor,
"Implementation-Version" to modVersion,
"Implementation-Timestamp" to SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").format(Date()), "Implementation-Timestamp" to SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").format(Date()),
"MixinConfigs" to "$modId.mixin.json" "MixinConfigs" to "$modId.mixins.json"
) )
} }
} }

View File

@ -2,6 +2,7 @@
"required": true, "required": true,
"minVersion": "0.8", "minVersion": "0.8",
"package": "chylex.bettercontrols.mixin", "package": "chylex.bettercontrols.mixin",
"refmap": "bettercontrols.refmap.json",
"compatibilityLevel": "JAVA_16", "compatibilityLevel": "JAVA_16",
"client": [ "client": [
"AccessCameraFields", "AccessCameraFields",