From cb0b99e147b089e8c161c1fc470f216b2af3ebad Mon Sep 17 00:00:00 2001 From: DokaDoka Date: Fri, 24 Dec 2021 09:37:27 +1100 Subject: [PATCH] fix(resource/streaming): print default when limit is nil --- resource/streaming/client.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resource/streaming/client.lua b/resource/streaming/client.lua index 6ebaa7d..c7660ec 100644 --- a/resource/streaming/client.lua +++ b/resource/streaming/client.lua @@ -4,7 +4,7 @@ local function hasLoaded(fn, type, request, limit) Wait(0) timeout -= 1 if timeout < 1 then - return print(('Unable to load %s after %s ticks (%s)'):format(type, limit, request)) + return print(('Unable to load %s after %s ticks (%s)'):format(type, limit or 100, request)) end end return request