Skip to content

Commit d03f49a

Browse files
authored
Add mixin refmap file
Add mixin refmap file to fix potential mixin problems
1 parent da2fd0e commit d03f49a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ minecraft {
130130
}
131131

132132
mixin {
133+
add sourceSets.main, "mixins.${mod_id}.refmap.json"
133134
config "${mod_id}.mixins.json"
134135
}
135136

@@ -243,4 +244,4 @@ tasks.named('jar', Jar).configure {
243244

244245
tasks.withType(JavaCompile).configureEach {
245246
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
246-
}
247+
}

src/main/resources/smartercontraptionstorage.mixins.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"required": true,
33
"minVersion": "0.8",
44
"package": "net.smartercontraptionstorage.Mixin",
5+
"refmap": "mixins.smartercontraptionstorage.refmap.json",
56
"compatibilityLevel": "JAVA_16",
67
"mixins": [
78
"Contraption.ContraptionControlBlockMixin",

0 commit comments

Comments
 (0)