crash if submod dont load correctly

This commit is contained in:
creeper123123321 2021-10-09 07:11:17 -03:00
parent e2fe610288
commit a2693aafce

View File

@ -9,7 +9,7 @@ public class ViaFabric implements ModInitializer {
if (FabricLoader.getInstance().getAllMods() if (FabricLoader.getInstance().getAllMods()
.stream() .stream()
.noneMatch(it -> it.getMetadata().getId().startsWith("viafabric-mc"))) { .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");
} }
} }
} }