From c5a2b9177c78fd1f0313361eb5ed8c9122a5c060 Mon Sep 17 00:00:00 2001 From: SendLua <75088221+SendLua@users.noreply.github.com> Date: Sun, 11 Sep 2022 15:12:22 +0700 Subject: [PATCH] fix ISteamHTTP (#94) --- lua/easychat/unicode_transliterator.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/easychat/unicode_transliterator.lua b/lua/easychat/unicode_transliterator.lua index def22b8..0e5f035 100644 --- a/lua/easychat/unicode_transliterator.lua +++ b/lua/easychat/unicode_transliterator.lua @@ -22,7 +22,6 @@ if file.Exists(LOOKUP_PATH, "DATA") then local json = file.Read(LOOKUP_PATH, "DATA") load_lookup(json) else - -- ISteamHTTP is sometimes not available on initialize, thanks Garry local function fetch_lookup(retries) retries = retries or 0 @@ -70,7 +69,9 @@ else end end - fetch_lookup() + timer.Simple(0, function() + fetch_lookup() + end) end function transliterator:IsRenderable(input)