mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-11 07:39:39 +07:00
Fixed #2529
This commit is contained in:
parent
3b5d6860d6
commit
3e2fcfa30f
@ -709,7 +709,7 @@ public class Mods implements Loadable{
|
||||
public boolean isSupported(){
|
||||
if(isOutdated()) return false;
|
||||
|
||||
int major = getMinMinor(), minor = getMinMinor();
|
||||
int major = getMinMajor(), minor = getMinMinor();
|
||||
|
||||
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. */
|
||||
public boolean isOutdated(){
|
||||
//must be at least 105 to indicate v6 compat
|
||||
return getMinMinor() < 105;
|
||||
return getMinMajor() < 105;
|
||||
}
|
||||
|
||||
public int getMinMajor(){
|
||||
@ -749,7 +749,7 @@ public class Mods implements Loadable{
|
||||
}
|
||||
}
|
||||
|
||||
return Strings.parseInt(ver, 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user