Skip to content

Commit 27c2a67

Browse files
committed
Allow only applying mixins when mods aren't present
1 parent f488df2 commit 27c2a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/org/embeddedt/modernfix/core/config/ModernFixEarlyConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ private void scanForAndBuildMixinOptions() {
112112
if(annotation.values.get(i).equals("value")) {
113113
String modId = (String)annotation.values.get(i + 1);
114114
if(modId != null) {
115-
requiredModPresent = modPresent(modId);
115+
requiredModPresent = modId.startsWith("!") ? !modPresent(modId.substring(1)) : modPresent(modId);
116116
requiredModId = modId;
117117
}
118118
break;

0 commit comments

Comments
 (0)