Skip to content

Commit 6243f65

Browse files
committed
Change expected package name for Lithium, see #173
1 parent f3a4b3f commit 6243f65

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

Common/src/main/java/malte0811/ferritecore/mixin/config/FerriteMixinConfig.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@
1919
public abstract class FerriteMixinConfig implements IMixinConfigPlugin {
2020
protected static final Logger LOGGER = LogManager.getLogger("ferritecore-mixin");
2121
private static final boolean HAS_LITHIUM;
22-
private static final boolean HAS_ROADRUNNER;
2322

2423
static {
25-
HAS_LITHIUM = hasClass("me.jellysquid.mods.lithium.common.LithiumMod");
26-
HAS_ROADRUNNER = hasClass("me.jellysquid.mods.lithium.common.RoadRunner");
24+
HAS_LITHIUM = hasClass("net.caffeinemc.mods.lithium.common.LithiumMod");
2725
}
2826

2927
private String prefix = null;
@@ -143,19 +141,13 @@ private static boolean hasClass(String name) {
143141

144142
protected enum LithiumSupportState {
145143
NO_CONFLICT,
146-
INCOMPATIBLE,
147-
APPLY_IF_ROADRUNNER;
144+
INCOMPATIBLE;
148145

149146
private boolean shouldApply() {
150147
return switch (this) {
151148
case NO_CONFLICT -> true;
152149
case INCOMPATIBLE -> !HAS_LITHIUM;
153-
case APPLY_IF_ROADRUNNER -> !HAS_LITHIUM || HAS_ROADRUNNER;
154150
};
155151
}
156152
}
157-
158-
static String test(Map<String, String> m, String k) {
159-
return m.get(k);
160-
}
161153
}

Common/src/main/java/malte0811/ferritecore/mixin/threaddetec/Config.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
public class Config extends FerriteMixinConfig {
77
public Config() {
8-
super(FerriteConfig.THREADING_DETECTOR, LithiumSupportState.APPLY_IF_ROADRUNNER, true);
8+
super(FerriteConfig.THREADING_DETECTOR, LithiumSupportState.INCOMPATIBLE, true);
99
}
1010
}

0 commit comments

Comments
 (0)