mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-10-25 20:22:23 +00:00
fix AE2 version check in crash callback (#57)
This commit is contained in:
1 parent
86da15ac65
commit
07152aaee0
1 file changed
+4
-4
@@ -27,14 +27,14 @@ public class EnderIOCrashCallable implements ICrashCallable {
|
||||
|
||||
for (ModContainer modContainer : ModAPIManager.INSTANCE.getAPIList()) {
|
||||
if ("appliedenergistics2|API".equals(modContainer.getModId())) {
|
||||
if ("rv1".equals(modContainer.getVersion())) {
|
||||
if ("rv1".equals(modContainer.getVersion()) || "rv2".equals(modContainer.getVersion())) {
|
||||
result.add(" * An unsupportted old AE2 API is installed (" + modContainer.getVersion() + " from "
|
||||
+ modContainer.getSource().getName() + ").");
|
||||
result.add(" Ender IO was build against API version rv2 and will NOT work with older versions.");
|
||||
} else if (!"rv2".equals(modContainer.getVersion())) {
|
||||
result.add(" Ender IO was build against API version rv3 and will NOT work with older versions.");
|
||||
} else if (!"rv3".equals(modContainer.getVersion())) {
|
||||
result.add(" * An unknown AE2 API is installed (" + modContainer.getVersion() + " from "
|
||||
+ modContainer.getSource().getName() + ").");
|
||||
result.add(" Ender IO was build against API version rv2 and may or may not work with a newer version.");
|
||||
result.add(" Ender IO was build against API version rv3 and may or may not work with a newer version.");
|
||||
}
|
||||
} else if ("CoFHAPI|energy".equals(modContainer.getModId())) {
|
||||
if ("1.7.10R1.0.0".equals(modContainer.getVersion()) || "1.7.10R1.0.1".equals(modContainer.getVersion())) {
|
||||
|
||||
Reference in new issue
Block a user