Helix shoot pattern / Min mod game version

This commit is contained in:
Anuke
2022-03-05 19:05:42 -05:00
parent 730691c589
commit d92c9cfcf8
11 changed files with 57 additions and 36 deletions

View File

@@ -868,7 +868,7 @@ public class Mods implements Loadable{
!skipModLoading() &&
Core.settings.getBool("mod-" + baseName + "-enabled", true) &&
Version.isAtLeast(meta.minGameVersion) &&
(meta.getMinMajor() >= 105 || headless)
(meta.getMinMajor() >= 136 || headless)
){
if(ios){
throw new ModLoadException("Java class mods are not supported on iOS.");
@@ -997,10 +997,10 @@ public class Mods implements Loadable{
return Version.isAtLeast(meta.minGameVersion);
}
/** @return whether this mod is outdated, e.g. not compatible with v6. */
/** @return whether this mod is outdated, e.g. not compatible with v7. */
public boolean isOutdated(){
//must be at least 105 to indicate v6 compat
return getMinMajor() < 105;
//must be at least 136 to indicate v7 compat
return getMinMajor() < 136;
}
public int getMinMajor(){