Skip to content

Commit 06273d9

Browse files
committed
only use enableMixins() if usesMixins is true
1 parent 82d826d commit 06273d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,10 @@ configurations {
402402
dependencies {
403403
if (usesMixins.toBoolean() || forceEnableMixins.toBoolean()) {
404404
implementation 'zone.rong:mixinbooter:7.0'
405-
String mixin = modUtils.enableMixins('org.spongepowered:mixin:0.8.3', "mixins.${modId}.refmap.json")
405+
String mixin = 'org.spongepowered:mixin:0.8.3'
406+
if (usesMixins.toBoolean()) {
407+
mixin = modUtils.enableMixins(mixin, "mixins.${modId}.refmap.json")
408+
}
406409

407410
api (mixin) {
408411
transitive = false

0 commit comments

Comments
 (0)