File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,15 +88,25 @@ unimined.minecraft {
8888
8989 defaultRemapJar = false
9090
91- remap(tasks. shadowJar) {
92- mixinRemap {
93- enableBaseMixin()
94- enableMixinExtra()
95- disableRefmap()
91+ if (propertyBool(' enable_shadow' )) {
92+ remap(tasks. shadowJar) {
93+ mixinRemap {
94+ enableBaseMixin()
95+ enableMixinExtra()
96+ disableRefmap()
97+ }
98+ }
99+ } else {
100+ remap(tasks. jar) {
101+ mixinRemap {
102+ enableBaseMixin()
103+ enableMixinExtra()
104+ disableRefmap()
105+ }
96106 }
97107 }
98108
99- mods{
109+ mods {
100110 remap(configurations. modCompileOnly)
101111 }
102112}
@@ -151,7 +161,7 @@ jar {
151161 from configurations. contain
152162 }
153163 }
154- doFirst{
164+ doFirst {
155165 manifest {
156166 def attribute_map = [:]
157167 attribute_map[' ModType' ] = " CRL"
@@ -173,6 +183,8 @@ jar {
173183 }
174184 if (propertyBool(' enable_shadow' )) {
175185 finalizedBy(tasks. named(" remapShadowJar" ))
186+ } else {
187+ finalizedBy(tasks. named(" remapJar" ))
176188 }
177189}
178190
You can’t perform that action at this time.
0 commit comments