mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
check both times just in case lol
This commit is contained in:
parent
dcc3432f51
commit
f9a51a4a2d
@ -360,10 +360,20 @@ namespace NewHorizons.Utility
|
||||
}
|
||||
else
|
||||
{
|
||||
// Get downloaded asset bundle
|
||||
var texture = DownloadHandlerTexture.GetContent(uwr);
|
||||
_loadedTextures.Add(url, texture);
|
||||
imageLoadedEvent.Invoke(texture, index);
|
||||
if (_loadedTextures.ContainsKey(url))
|
||||
{
|
||||
Logger.Log($"Already loaded image at path: {url}");
|
||||
var texture = _loadedTextures[url];
|
||||
imageLoadedEvent.Invoke(texture, index);
|
||||
yield break;
|
||||
}
|
||||
|
||||
{
|
||||
// Get downloaded asset bundle
|
||||
var texture = DownloadHandlerTexture.GetContent(uwr);
|
||||
_loadedTextures.Add(url, texture);
|
||||
imageLoadedEvent.Invoke(texture, index);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user