From 57bf80607c0f611f3829d8c62a7f7321570536b5 Mon Sep 17 00:00:00 2001 From: FalsePattern <30945458+FalsePattern@users.noreply.github.com> Date: Thu, 6 Apr 2023 19:31:57 +0200 Subject: [PATCH] add flavour text --- .../falsepattern/lib/internal/asm/CoreLoadingPlugin.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/com/falsepattern/lib/internal/asm/CoreLoadingPlugin.java b/src/main/java/com/falsepattern/lib/internal/asm/CoreLoadingPlugin.java index db2475f..15e29f9 100644 --- a/src/main/java/com/falsepattern/lib/internal/asm/CoreLoadingPlugin.java +++ b/src/main/java/com/falsepattern/lib/internal/asm/CoreLoadingPlugin.java @@ -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"); } }