mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-13 09:26:11 -04:00
only check jar assets when assets index was not generated yet
This commit is contained in:
parent
d1b6a581f7
commit
40e3c9f402
@ -128,6 +128,13 @@ public class AssetsManager {
|
|||||||
public static void generateJarAssets() throws IOException {
|
public static void generateJarAssets() throws IOException {
|
||||||
long startTime = System.currentTimeMillis();
|
long startTime = System.currentTimeMillis();
|
||||||
Log.verbose("Generating client.jar assets...");
|
Log.verbose("Generating client.jar assets...");
|
||||||
|
try {
|
||||||
|
// ToDo: Verify assets
|
||||||
|
readAssetAsStreamByHash(ASSETS_CLIENT_JAR_HASH);
|
||||||
|
Log.verbose("client.jar assets probably already loaded, skipping");
|
||||||
|
return;
|
||||||
|
} catch (Exception ignored) {
|
||||||
|
}
|
||||||
JsonObject manifest = HTTP.getJson("https://launchermeta.mojang.com/mc/game/version_manifest.json").getAsJsonObject();
|
JsonObject manifest = HTTP.getJson("https://launchermeta.mojang.com/mc/game/version_manifest.json").getAsJsonObject();
|
||||||
String assetsVersionJsonUrl = null;
|
String assetsVersionJsonUrl = null;
|
||||||
for (JsonElement versionElement : manifest.getAsJsonArray("versions")) {
|
for (JsonElement versionElement : manifest.getAsJsonArray("versions")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user