mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-12 23:37:36 +00:00
make the NEID incompatibility more obvious
This commit is contained in:
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");
|
||||
|
||||
Reference in new issue
Block a user