Skip to content

Commit 7f1e4fe

Browse files
committed
disallow using Thermos with my mods, it only causes unnecessary headaches.
1 parent da7ceb8 commit 7f1e4fe

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/main/java/com/falsepattern/lib/internal/CoreLoadingPlugin.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.falsepattern.lib.internal;
22

3+
import lombok.val;
4+
35
import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
46
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.MCVersion;
57
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.Name;
@@ -13,6 +15,19 @@
1315
@Name(Tags.MODID)
1416
@SortingIndex(500)
1517
public class CoreLoadingPlugin implements IFMLLoadingPlugin {
18+
static {
19+
try {
20+
Class.forName("thermos.Thermos");
21+
val iAmNotFixingThisDontEvenAskPlusSkillIssue =
22+
new Error("\n\n" +
23+
"--------------------------------------------------------------------------------\n" +
24+
"|Thermos is not supported by FalsePatternLib, please use a normal forge server.|\n" +
25+
"| Any bug reports concerning this message will be silently deleted. |\n" +
26+
"--------------------------------------------------------------------------------\n");
27+
iAmNotFixingThisDontEvenAskPlusSkillIssue.setStackTrace(new StackTraceElement[0]);
28+
throw iAmNotFixingThisDontEvenAskPlusSkillIssue;
29+
} catch (ClassNotFoundException ignored) {}
30+
}
1631

1732
@Override
1833
public String[] getASMTransformerClass() {

0 commit comments

Comments
 (0)