From 01cb5ebb35fbcace104ba28cdb517ff256258b85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 28 Feb 2017 20:37:51 +0100 Subject: GH-1828 do not load assets info from custom version files Fixes issue where this causes the launcher to use the old assets URL --- api/logic/minecraft/onesix/OneSixProfileStrategy.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'api/logic/minecraft/onesix/OneSixProfileStrategy.cpp') diff --git a/api/logic/minecraft/onesix/OneSixProfileStrategy.cpp b/api/logic/minecraft/onesix/OneSixProfileStrategy.cpp index af42286d..07c9f075 100644 --- a/api/logic/minecraft/onesix/OneSixProfileStrategy.cpp +++ b/api/logic/minecraft/onesix/OneSixProfileStrategy.cpp @@ -170,6 +170,12 @@ void OneSixProfileStrategy::loadUserPatches() } file->setRemovable(true); file->setMovable(true); + // HACK: ignore assets from other version files than Minecraft + // workaround for stupid assets issue caused by amazon: + // https://www.theregister.co.uk/2017/02/28/aws_is_awol_as_s3_goes_haywire/ + file->assets = QString(); + file->mojangAssetIndex.reset(); + // HACK profile->appendPatch(file); } // now load the rest by internal preference. @@ -192,6 +198,12 @@ void OneSixProfileStrategy::loadUserPatches() continue; file->setRemovable(true); file->setMovable(true); + // HACK: ignore assets from other version files than Minecraft + // workaround for stupid assets issue caused by amazon: + // https://www.theregister.co.uk/2017/02/28/aws_is_awol_as_s3_goes_haywire/ + file->assets = QString(); + file->mojangAssetIndex.reset(); + // HACK files.insert(file->order, file); } QSet seen; -- cgit v1.2.3