add flavour text

This commit is contained in:
FalsePattern committed 2023-04-06 19:31:57 +02:00
1 parent c6abc0061a
commit 57bf80607c
1 file changed
+7
@@ -20,6 +20,7 @@
*/
package com.falsepattern.lib.internal.asm;
import com.falsepattern.lib.internal.Share;
import com.falsepattern.lib.internal.Tags;
import com.falsepattern.lib.internal.impl.dependencies.DependencyLoaderImpl;
import com.falsepattern.lib.mapping.MappingManager;
@@ -47,14 +48,18 @@ public class CoreLoadingPlugin implements IFMLLoadingPlugin {
private static boolean obfuscated;
static {
Share.LOG.info("Removing skill issues...");
try {
Class.forName("thermos.Thermos");
Share.LOG.fatal("Sorry, i prefer iced coffee.");
throw skillIssue("Thermos is not supported by FalsePatternLib, please use a normal forge server.");
} catch (ClassNotFoundException ignored) {
}
//Scan for dependencies now
Share.LOG.info("Scanning for deps...");
DependencyLoaderImpl.scanDeps();
//Initializing the rest
Share.LOG.info("Initializing mapping manager...");
MappingManager.initialize();
}
@@ -109,6 +114,7 @@ public class CoreLoadingPlugin implements IFMLLoadingPlugin {
}
public static void validateGasStation() {
Share.LOG.info("Got any gas?");
//Make sure everything is loaded correctly, crash if gasstation is bugged
if (!isClassPresentSafe("com.falsepattern.gasstation.core.GasStationCore") || //Validate core class
!isClassPresentSafe("makamys.mixingasm.api.TransformerInclusions") || //Validate the mixingasm compat
@@ -116,6 +122,7 @@ public class CoreLoadingPlugin implements IFMLLoadingPlugin {
!isClassPresentSafe("io.github.tox1cozz.mixinbooterlegacy.MixinBooterLegacyPlugin") || //Validate the MBL compat
(!isClassPresentSafe("org.spongepowered.asm.lib.Opcodes") || isClassPresentSafe("org.spongepowered.libraries.org.objectweb.asm.Opcodes")) //Validate correct mixins class
) {
Share.LOG.fatal("Somebody put diesel in my gas tank!");
throw new Error("Failed to validate your GasStation mixin plugin installation. Please make sure you have the latest GasStation installed from the official source: https://github.com/FalsePattern/GasStation");
}
}