You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/cleanroommc/modularui/core/ModularUICore.java
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,11 @@ public String getSetupClass() {
40
40
41
41
@Override
42
42
publicvoidinjectData(Map<String, Object> data) {
43
+
// this checks needs to happen this early
44
+
// randompatches would otherwise crash shortly after this
45
+
if (classExists("com.therandomlabs.randompatches.core.RPCore")) {
46
+
thrownewIllegalStateException("ModularUI is incompatible with RandomPatches. Please remove RandomPatches or replace it with UniversalTweaks as most features are replaced by it.");
47
+
}
43
48
for (IClassTransformertransformer : Launch.classLoader.getTransformers()) {
44
49
Stringname = transformer.getClass().getName();
45
50
if (name.endsWith("appeng.core.transformer.AE2ELTransformer")) {
@@ -59,4 +64,13 @@ public String getAccessTransformerClass() {
0 commit comments