public static boolean assetsUpdateRequired(String directory) throws IOException {
        if (!(directory.endsWith("/")||directory.endsWith("\\"))) {
            Logger.warning("Assets", "A slash was not added at the end of the asset directory to check for updates. Attempting to fix...");
            directory = directory + "/";
        }
        
        File defFileCurrent = File.createTempFile("assets", ".json");
        URL defWeb = new URL("https://s3.amazonaws.com/Minecraft.Download/indexes/legacy.json");
        FileUtils.copyURLToFile(defWeb, defFileCurrent);
        
        File defFileExisting = new File(directory + "assetDef.json");
        if (defFileExisting.exists() && defFileExisting.isFile()) {
            String defFileExistingString = FileUtils.readFileToString(defFileExisting);
            String defFileCurrentString = FileUtils.readFileToString(defFileCurrent);
            String defFileExistingHash = DigestUtils.md5Hex(defFileExistingString);
            String defFileCurrentHash = DigestUtils.md5Hex(defFileCurrentString);
            if (defFileExistingHash.equals(defFileCurrentHash)) {
                return false;
            }
            else {
                return true;
            }
        }
        else {
            return true;
        }
    }