This commit is contained in:
Anuken
2020-09-10 09:20:54 -04:00
parent 3b5d6860d6
commit 3e2fcfa30f

View File

@@ -709,7 +709,7 @@ public class Mods implements Loadable{
public boolean isSupported(){ public boolean isSupported(){
if(isOutdated()) return false; if(isOutdated()) return false;
int major = getMinMinor(), minor = getMinMinor(); int major = getMinMajor(), minor = getMinMinor();
if(Version.build <= 0) return true; if(Version.build <= 0) return true;
@@ -719,7 +719,7 @@ public class Mods implements Loadable{
/** @return whether this mod is outdated, e.g. not compatible with v6. */ /** @return whether this mod is outdated, e.g. not compatible with v6. */
public boolean isOutdated(){ public boolean isOutdated(){
//must be at least 105 to indicate v6 compat //must be at least 105 to indicate v6 compat
return getMinMinor() < 105; return getMinMajor() < 105;
} }
public int getMinMajor(){ public int getMinMajor(){
@@ -749,7 +749,7 @@ public class Mods implements Loadable{
} }
} }
return Strings.parseInt(ver, 0); return 0;
} }
@Override @Override