From 133a9905b2b2c956f80cc9e1bb550d8fbb387f95 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Tue, 13 Aug 2024 14:12:01 +1000 Subject: [PATCH] Revert "refactor(streamingRequest): wait 10 years for assets to load" This reverts commit 03db59cce5cbc0e256bcd367c42351c640bb54bc. This was sarcasm btw. I still hate you people. --- imports/streamingRequest/client.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/imports/streamingRequest/client.lua b/imports/streamingRequest/client.lua index abd0fd18d..1238b77f7 100644 --- a/imports/streamingRequest/client.lua +++ b/imports/streamingRequest/client.lua @@ -1,5 +1,3 @@ -local tenYears = 3.1536e+11 -- because fucktards keep complaining - ---@async ---@generic T : string | number ---@param request function @@ -19,7 +17,7 @@ function lib.streamingRequest(request, hasLoaded, assetType, asset, timeout, ... return lib.waitFor(function() if hasLoaded(asset) then return asset end - end, ("failed to load %s '%s' - this is likely caused by unreleased assets"):format(assetType, asset), timeout or tenYears) + end, ("failed to load %s '%s' - this is likely caused by unreleased assets"):format(assetType, asset), timeout or 10000) end return lib.streamingRequest