summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/onesix
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/minecraft/onesix')
-rw-r--r--api/logic/minecraft/onesix/OneSixProfileStrategy.cpp12
1 files changed, 12 insertions, 0 deletions
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<int> seen;