Skip to content

Commit

Permalink
fix AE2 version check in crash callback (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
repo-alt authored Feb 26, 2022
1 parent 86da15a commit 07152aa
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ private List<String> collectData() {

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())) {
Expand Down

0 comments on commit 07152aa

Please sign in to comment.