File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11plugins {
22 id " me.modmuss50.mod-publish-plugin" version " 1.1.0" // https://github.com/modmuss50/mod-publish-plugin
3- id ' fabric-loom'
4- id ' multiloader-loader'
3+ id " fabric-loom"
4+ id " multiloader-loader"
55}
66
77dependencies {
@@ -28,26 +28,33 @@ dependencies {
2828}
2929
3030loom {
31- def aw = project(' :common' ). file(" src/main/resources/${ mod_id} .accesswidener" )
31+ def aw = project(" :common" ). file(" src/main/resources/${ mod_id} .accesswidener" )
3232 if (aw. exists()) {
3333 accessWidenerPath. set(aw)
3434 }
3535 runs {
36- configureEach {
37- vmArg(" -Dmixin.debug.export=true" )
38- }
39-
40- client {
36+ def client = client {
4137 client()
42- setConfigName(' Fabric Client' )
38+ setConfigName(" Fabric Client" )
4339 ideConfigGenerated(true )
44- runDir(' runs/client' )
40+ runDir(" runs/client" )
4541 }
46- server {
42+ def server = server {
4743 server()
48- setConfigName(' Fabric Server' )
44+ setConfigName(" Fabric Server" )
4945 ideConfigGenerated(true )
50- runDir(' runs/server' )
46+ runDir(" runs/server" )
47+ }
48+
49+ clientMixinExport {
50+ inherit(client)
51+ setConfigName(configName + " | Mixin Export" )
52+ vmArg(" -Dmixin.debug.export=true" )
53+ }
54+ serverMixinExport {
55+ inherit(server)
56+ setConfigName(configName + " | Mixin Export" )
57+ vmArg(" -Dmixin.debug.export=true" )
5158 }
5259 }
5360}
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ neoForge {
1818 runs {
1919 configureEach {
2020 systemProperty(" neoforge.enabledGameTestNamespaces" , mod_id. toString())
21- systemProperty(" mixin.debug.export" , " true" )
2221 ideName = " NeoForge ${ it.name.capitalize()} (${ project.path} )" // Unify the run config names with fabric
2322 }
2423 client {
@@ -31,6 +30,17 @@ neoForge {
3130 type = " gameTestServer"
3231 gameDirectory = project. file(" build/gametest" )
3332 }
33+
34+ clientMixinExport {
35+ client()
36+ ideName = " NeoForge Client | Mixin Export (${ project.path} )"
37+ systemProperty(" mixin.debug.export" , " true" )
38+ }
39+ serverMixinExport {
40+ server()
41+ ideName = " NeoForge Server | Mixin Export (${ project.path} )"
42+ systemProperty(" mixin.debug.export" , " true" )
43+ }
3444 }
3545 mods {
3646 " ${ mod_id} " {
You can’t perform that action at this time.
0 commit comments