Skip to content

Commit

Permalink
Bumped version & fixed minor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SinoAHpx committed Jul 13, 2024
1 parent b516263 commit c6c3505
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ModuleLauncher.NET/ModuleLauncher.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<LangVersion>latestmajor</LangVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageVersion>4.1.3</PackageVersion>
<PackageVersion>4.1.4</PackageVersion>
<Title>ModuleLauncher.NET</Title>
<Description>Your on-the-fly Minecraft launcher core.</Description>
<Copyright>Copyright 2024 AHpx all rights reserved.</Copyright>
Expand Down
5 changes: 4 additions & 1 deletion ModuleLauncher.NET/Utilities/DownloaderUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,10 @@ public static async Task<List<RemoteMinecraftEntry>> GetRemoteMinecraftsAsync(st
if (_remoteMinecraftEntriesCache != null)
return _remoteMinecraftEntriesCache;

var manifest = await VersionsManifestUrl.GetStringAsync();
var manifest = File.Exists(localManifestStorage)
? await File.ReadAllTextAsync(localManifestStorage)
: await VersionsManifestUrl.GetStringAsync();

await File.WriteAllTextAsync(localManifestStorage, manifest);

var versions = manifest.Fetch("versions")!;
Expand Down

0 comments on commit c6c3505

Please sign in to comment.