From a2693aafce6f54ae6a07472210b48c975bba8911 Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Sat, 9 Oct 2021 07:11:17 -0300 Subject: [PATCH] crash if submod dont load correctly --- src/main/java/com/viaversion/fabric/common/ViaFabric.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/viaversion/fabric/common/ViaFabric.java b/src/main/java/com/viaversion/fabric/common/ViaFabric.java index 504ca62..5d0c684 100644 --- a/src/main/java/com/viaversion/fabric/common/ViaFabric.java +++ b/src/main/java/com/viaversion/fabric/common/ViaFabric.java @@ -9,7 +9,7 @@ public class ViaFabric implements ModInitializer { if (FabricLoader.getInstance().getAllMods() .stream() .noneMatch(it -> it.getMetadata().getId().startsWith("viafabric-mc"))) { - System.out.println("ViaFabric didn't load correctly... Are dependencies installed?"); + throw new IllegalStateException("ViaFabric sub-mod didn't load correctly. Check if required dependencies are installed"); } } }