private static VanillaDownloadInfo GetVersionInfo() { try { if (_cache != null) return _cache; string json = WebUtil.RetrieveString("https://s3.amazonaws.com/Minecraft.Download/versions/versions.json"); if (string.IsNullOrEmpty(json)) return null; _cache = new VanillaDownloadInfo(json); return _cache; } catch (Exception e) { Logger.Log(LogLevel.Warning, "VanillaDownloadProvider", "Failed to retrieve vanilla download info", e.Message); return null; } }
private static VanillaDownloadInfo GetVersionInfo() { try { if (_cache != null) { return(_cache); } string json = WebUtil.RetrieveString("https://s3.amazonaws.com/Minecraft.Download/versions/versions.json"); if (string.IsNullOrEmpty(json)) { return(null); } _cache = new VanillaDownloadInfo(json); return(_cache); } catch (Exception e) { Logger.Log(LogLevel.Warning, "VanillaDownloadProvider", "Failed to retrieve vanilla download info", e.Message); return(null); } }
private static VanillaDownloadInfo GetVersionInfo() { try { if (_cache != null) { return(_cache); } string json = WebUtil.RetrieveString("https://launchermeta.mojang.com/mc/game/version_manifest.json"); if (string.IsNullOrEmpty(json)) { return(null); } _cache = new VanillaDownloadInfo(json); return(_cache); } catch (Exception e) { Logger.Log(LogLevel.Warning, "VanillaDownloadProvider", "Failed to retrieve vanilla download info", e.Message); return(null); } }