make the NEID incompatibility more obvious

This commit is contained in:
FalsePattern committed 2025-06-06 11:12:53 +02:00
1 parent e06a4d329b
commit 3c38d3e184
1 file changed
+15
@@ -48,6 +48,12 @@ public class EndlessIDsCore implements IFMLLoadingPlugin {
public static boolean deobfuscated;
public EndlessIDsCore() {
super();
try {
if (Launch.classLoader.getClassBytes("ru.fewizz.neid.asm.Plugin") != null ||
Launch.classLoader.getClassBytes("com.gtnewhorizons.neid.asm.NEIDTransformer") != null) {
loudCrash("EndlessIDs replaces NotEnoughIDs! Please uninstall NotEnoughIDs!");
}
} catch (Exception ignored) {}
}
@SneakyThrows
@@ -68,6 +74,15 @@ public class EndlessIDsCore implements IFMLLoadingPlugin {
return new String[]{EndlessIDsTransformer.class.getName()};
}
private static void loudCrash(String message) {
for (int i = 0; i < 100; i++) {
EndlessIDsTransformer.logger.fatal(message);
}
val err = new Error(message);
err.setStackTrace(new StackTraceElement[0]);
throw err;
}
public String getModContainerClass() {
if (GeneralConfig.extendBiome) {
FMLInjectionData.containers.add(Tags.GROUPNAME + ".containers.BiomeContainer");