private boolean upToDate (File verFile) {
        String storedVersion = getStoredVersion(verFile).replace(".", "");
        int storedVersion_ = -1;
        if (!storedVersion.isEmpty()) {
            try {
                storedVersion_ = Integer.parseInt(storedVersion);
            } catch (NumberFormatException e) {
                Logger.logWarn("Automatically fixing malformed version file for " + name, e);
                storedVersion = "";
            }
        }

        if (storedVersion.isEmpty() || storedVersion_ != Integer.parseInt(version.replace(".", ""))) {
            try {
                if (!verFile.exists()) {
                    verFile.getParentFile().mkdirs();
                    verFile.createNewFile();
                }
                BufferedWriter out = new BufferedWriter(new FileWriter(verFile));
                out.write(version);
                out.flush();
                out.close();
                return false;
            } catch (IOException e) {
                Logger.logError("Error while checking modpack version", e);
                return false;
            }
        }

        return true;
    }