GH-1828 do not load assets info from custom version files
Fixes issue where this causes the launcher to use the old assets URL
This commit is contained in:
		@@ -170,6 +170,12 @@ void OneSixProfileStrategy::loadUserPatches()
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
		file->setRemovable(true);
 | 
							file->setRemovable(true);
 | 
				
			||||||
		file->setMovable(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);
 | 
							profile->appendPatch(file);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	// now load the rest by internal preference.
 | 
						// now load the rest by internal preference.
 | 
				
			||||||
@@ -192,6 +198,12 @@ void OneSixProfileStrategy::loadUserPatches()
 | 
				
			|||||||
			continue;
 | 
								continue;
 | 
				
			||||||
		file->setRemovable(true);
 | 
							file->setRemovable(true);
 | 
				
			||||||
		file->setMovable(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);
 | 
							files.insert(file->order, file);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	QSet<int> seen;
 | 
						QSet<int> seen;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user