From 7f1e4fe2c312c776983b6d896b7432de31203a2a Mon Sep 17 00:00:00 2001 From: FalsePattern <30945458+FalsePattern@users.noreply.github.com> Date: Mon, 25 Jul 2022 16:44:00 +0200 Subject: [PATCH] disallow using Thermos with my mods, it only causes unnecessary headaches. --- .../lib/internal/CoreLoadingPlugin.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/main/java/com/falsepattern/lib/internal/CoreLoadingPlugin.java b/src/main/java/com/falsepattern/lib/internal/CoreLoadingPlugin.java index 3a322a1..469b0fd 100644 --- a/src/main/java/com/falsepattern/lib/internal/CoreLoadingPlugin.java +++ b/src/main/java/com/falsepattern/lib/internal/CoreLoadingPlugin.java @@ -1,5 +1,7 @@ package com.falsepattern.lib.internal; +import lombok.val; + import cpw.mods.fml.relauncher.IFMLLoadingPlugin; import cpw.mods.fml.relauncher.IFMLLoadingPlugin.MCVersion; import cpw.mods.fml.relauncher.IFMLLoadingPlugin.Name; @@ -13,6 +15,19 @@ import java.util.Map; @Name(Tags.MODID) @SortingIndex(500) public class CoreLoadingPlugin implements IFMLLoadingPlugin { + static { + try { + Class.forName("thermos.Thermos"); + val iAmNotFixingThisDontEvenAskPlusSkillIssue = + new Error("\n\n" + + "--------------------------------------------------------------------------------\n" + + "|Thermos is not supported by FalsePatternLib, please use a normal forge server.|\n" + + "| Any bug reports concerning this message will be silently deleted. |\n" + + "--------------------------------------------------------------------------------\n"); + iAmNotFixingThisDontEvenAskPlusSkillIssue.setStackTrace(new StackTraceElement[0]); + throw iAmNotFixingThisDontEvenAskPlusSkillIssue; + } catch (ClassNotFoundException ignored) {} + } @Override public String[] getASMTransformerClass() {