Set latestModVersion to true by default so the user doesn't get an update notification if their internet failed
If in a dev environment, ApiClient#isVersionUpToDate always returns true
This commit is contained in:
@@ -203,6 +203,8 @@ public class ApiClient {
|
||||
}
|
||||
|
||||
public boolean isVersionUpToDate(String versionIdentifier) throws IOException, ApiException {
|
||||
//in a development environment, getContainer().getVersion() will return ${version}
|
||||
if(versionIdentifier.equals("${version}")) return true;
|
||||
QueryBuilder builder = new QueryBuilder(ReplayModApiMethods.up_to_date);
|
||||
builder.put("version", versionIdentifier);
|
||||
return invokeAndReturn(builder, Success.class).isSuccess();
|
||||
|
||||
Reference in New Issue
Block a user