mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-11-16 10:45:15 +01:00
crash if submod dont load correctly
This commit is contained in:
parent
e2fe610288
commit
a2693aafce
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user