Skip to content

Commit d78c8b4

Browse files
Merge branch 'main' into mixin
2 parents bd57e11 + 2216864 commit d78c8b4

2 files changed

Lines changed: 20 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ If you want to change artifact file name, also change it in build.gradle
88
Mixin in Cleanroom only need 1~3 configs, MixinBooter API is deprecated, check mixin branch for more detail
99

1010
**WARNING**: These features are missing:
11-
- Applying dependencies AT. Since even JEI has many ATs, this mean you will have to test your mod in production launchers.
11+
- Inheriting ATs from dependencies. AT in runs works well though.
1212

1313
## Branches
1414
There are 3 branches available:

build.gradle

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,25 @@ unimined.minecraft {
8989

9090
defaultRemapJar = false
9191

92-
remap(tasks.shadowJar) {
93-
mixinRemap {
94-
enableBaseMixin()
95-
enableMixinExtra()
96-
disableRefmap()
92+
if (propertyBool('enable_shadow')) {
93+
remap(tasks.shadowJar) {
94+
mixinRemap {
95+
enableBaseMixin()
96+
enableMixinExtra()
97+
disableRefmap()
98+
}
99+
}
100+
} else {
101+
remap(tasks.jar) {
102+
mixinRemap {
103+
enableBaseMixin()
104+
enableMixinExtra()
105+
disableRefmap()
106+
}
97107
}
98108
}
99109

100-
mods{
110+
mods {
101111
remap(configurations.modCompileOnly)
102112
}
103113
}
@@ -152,7 +162,7 @@ jar {
152162
from configurations.contain
153163
}
154164
}
155-
doFirst{
165+
doFirst {
156166
manifest {
157167
def attribute_map = [:]
158168
attribute_map['ModType'] = "CRL"
@@ -175,6 +185,8 @@ jar {
175185
}
176186
if (propertyBool('enable_shadow')) {
177187
finalizedBy(tasks.named("remapShadowJar"))
188+
} else {
189+
finalizedBy(tasks.named("remapJar"))
178190
}
179191
}
180192

0 commit comments

Comments
 (0)