Define fabric refmap json file

This prevents conflicts with other plugins that use mixins and define default refmap file.

Affects issues:
- Fixed #3106
This commit is contained in:
Aurora Lahtela 2023-07-08 09:19:59 +03:00
parent 89ebbb3203
commit 2bab8f7744
2 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,11 @@ dependencies {
testImplementation project(path: ":common", configuration: 'testArtifacts')
}
loom {
// Defining separate refmap file prevents conflicts with plugin mixins
mixin.defaultRefmapName.set("plan-fabric-refmap.json")
}
tasks.withType(JavaCompile).configureEach {
options.release.set(17)
}

View File

@ -3,6 +3,7 @@
"minVersion": "0.8",
"package": "net.playeranalytics.plan.gathering.listeners.events.mixin",
"compatibilityLevel": "JAVA_17",
"refmap": "plan-fabric-refmap.json",
"mixins": [
"ClientToServerHandshakePacketMixin",
"KickCommandMixin",