Skip to content

Commit

Permalink
build: use forgegradle to config mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Sep 27, 2022
1 parent 10df0c2 commit 6becf0f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.gradle
Expand Up @@ -28,12 +28,11 @@ minecraft {
mappings channel: "${mappings_channel}", version: "${mappings_version}"
runs {
client {
workingDirectory project.file('run')
workingDirectory project.file('run').canonicalPath
property 'file.encoding', 'UTF-8'
property 'user.language', 'en'
property 'log4j.configurationFile', 'log4j2.xml'
property 'mixin.debug', 'true'
arg "-mixin.config=${project.modId}.mixin.json"
mods {
arnicalib {
source sourceSets.main
Expand All @@ -42,12 +41,11 @@ minecraft {
}

server {
workingDirectory project.file('run')
workingDirectory project.file('run').canonicalPath
property 'file.encoding', 'UTF-8'
property 'user.language', 'en'
property 'log4j.configurationFile', 'log4j2.xml'
property 'mixin.debug', 'true'
arg "-mixin.config=${project.modId}.mixin.json"
mods {
arnicalib {
source sourceSets.main
Expand All @@ -68,6 +66,7 @@ dependencies {

mixin {
add sourceSets.main, "${project.modId}.mixin-refmap.json"
config "${project.modId}.mixin.json"
}

apply from: 'gradle/tasks.gradle'
Expand Down

0 comments on commit 6becf0f

Please sign in to comment.