Skip to content

Commit 21971c1

Browse files
committed
Fix mixin
1 parent 17f3a7e commit 21971c1

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

build.gradle

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ plugins {
44
id 'maven-publish'
55
id 'net.minecraftforge.gradle' version '[6.0,6.2)'
66
id 'org.spongepowered.mixin' version '0.7.+'
7-
87
}
98

109
version = mod_version
@@ -158,8 +157,15 @@ dependencies {
158157
// If the group id is "net.minecraft" and the artifact id is one of ["client", "server", "joined"],
159158
// then special handling is done to allow a setup of a vanilla dependency without the use of an external repository.
160159
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
161-
160+
// This is the one you need from "Step 2"
162161
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
162+
163+
// Do NOT add 'clientAnnotationProcessor' or 'apiAnnotationProcessor'
164+
165+
// MixinExtras (corrected from last time)
166+
annotationProcessor "io.github.llamalad7:mixinextras-common:0.4.1"
167+
implementation "io.github.llamalad7:mixinextras-forge:0.4.1"
168+
163169
// Example mod dependency with JEI - using fg.deobf() ensures the dependency is remapped to your development mappings
164170
// The JEI API is declared for compile time use, while the full JEI artifact is used at runtime
165171
// compileOnly fg.deobf("mezz.jei:jei-${mc_version}-common-api:${jei_version}")

src/main/resources/pattern_schematics.mixins.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@
2626
],
2727
"injectors": {
2828
"defaultRequire": 1
29-
}
29+
},
30+
"refmap": "pattern_schematics.mixins.refmap.json"
3031
}

0 commit comments

Comments
 (0)