-
Bug
-
Resolution: Unresolved
-
None
-
20w06a
-
None
-
Plausible
-
Resource Packs
-
Low
-
Platform
The bug
There appears to be a potential race condition in net.minecraft.client.resources.ClientPackSource.downloadAndSelectResourcePack(String, String) (Mojang name).
- If a resource pack does not exist yet it is downloaded asynchronously.
- However, if the method is called again while the download is still in progress, it will incorrectly assume it was completely downloaded because the file exists.
- Since the file is not complete yet, either there is a hash mismatch (if a hash is provided) or setServerPack fails because the zip is malformed.
- The resource pack is therefore deleted.
The end result can therefore be that both downloadAndSelectResourcePack calls fail.