Skip to content

Commit ba423ff

Browse files
committed
update for 1.14.0 compatibility
1 parent 64b6f00 commit ba423ff

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

CustomPortRifts/Patches/TextureLoaderPatch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static bool LoadTextureAsync(string url, TextureLoader __instance, ref Ta
2222

2323
async Task<TextureLoader.LoadedImage> Wrapper() {
2424
var tcs = new TaskCompletionSource<TextureLoader.LoadedImage>();
25-
__instance._cache.Add(url, tcs.Task);
25+
__instance._cache.Add(url, new(tcs.Task));
2626

2727
using UnityWebRequest webRequest = UnityWebRequestTexture.GetTexture(url, nonReadable: true);
2828
UnityWebRequestAsyncOperation response = webRequest.SendWebRequest();
48 KB
Binary file not shown.

0 commit comments

Comments
 (0)