From a724874d5315c1758705af64a4ed9d1b223ab24e Mon Sep 17 00:00:00 2001 From: Kenshin13 <63159154+Kenshiin13@users.noreply.github.com> Date: Thu, 2 Jan 2025 12:26:22 +0100 Subject: [PATCH] fix(es_extended/imports): remove lua 5.4 dependency for importing resources --- [core]/es_extended/imports.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/[core]/es_extended/imports.lua b/[core]/es_extended/imports.lua index 6d6a862e..5e40a2d0 100644 --- a/[core]/es_extended/imports.lua +++ b/[core]/es_extended/imports.lua @@ -44,7 +44,7 @@ if not IsDuplicityVersion() then -- Only register this event for the client end end -if not lib?.require then +if not lib or not lib.require then local cachedModules = {} ---@type table local loadingModules = {} ---@type table