From 3e2fcfa30fc721713e3c6566ee752a00db427741 Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 10 Sep 2020 09:20:54 -0400 Subject: [PATCH] Fixed #2529 --- core/src/mindustry/mod/Mods.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/mindustry/mod/Mods.java b/core/src/mindustry/mod/Mods.java index 1b1ab5c272..6fb8b32f4f 100644 --- a/core/src/mindustry/mod/Mods.java +++ b/core/src/mindustry/mod/Mods.java @@ -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