[FIX] Fix download assets

This commit is contained in:
Gravita 2025-06-21 17:47:44 +07:00
parent ab1fa64f7a
commit d2a8bc2c35

View file

@ -15,7 +15,7 @@ public class AssetsDirHelper {
public static List<Downloader.SizedFile> makeToDownloadFiles(AssetInfo assetInfo, HashedDir updatesDir) { public static List<Downloader.SizedFile> makeToDownloadFiles(AssetInfo assetInfo, HashedDir updatesDir) {
List<Downloader.SizedFile> toDownload = new ArrayList<>(128); List<Downloader.SizedFile> toDownload = new ArrayList<>(128);
for (var e : assetInfo.assets.entrySet()) { for (var e : assetInfo.assets.getAsJsonObject("objects").entrySet()) {
var value = e.getValue().getAsJsonObject(); var value = e.getValue().getAsJsonObject();
var hash = value.get("hash").getAsString(); var hash = value.get("hash").getAsString();
hash = hash.substring(0, 2) + "/" + hash; hash = hash.substring(0, 2) + "/" + hash;