From 8e2f4136ee64d23dc04a6a27e1381ccf78c2d45f Mon Sep 17 00:00:00 2001 From: PrikolMen Date: Mon, 24 Apr 2023 03:34:21 +0400 Subject: [PATCH] Patch3 --- lua/gpm/init.lua | 2 +- lua/gpm/sources/lua.lua | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lua/gpm/init.lua b/lua/gpm/init.lua index aa353338..c9eddc27 100644 --- a/lua/gpm/init.lua +++ b/lua/gpm/init.lua @@ -9,7 +9,7 @@ CreateConVar( "gpm_cache_lifetime", "24", FCVAR_ARCHIVE, " - the cache lifetime, module( "gpm" ) -_VERSION = 010602 +_VERSION = 010603 function IncludeComponent( filePath ) filePath = "gpm/" .. filePath .. ".lua" diff --git a/lua/gpm/sources/lua.lua b/lua/gpm/sources/lua.lua index 2337ca49..ea3774ca 100644 --- a/lua/gpm/sources/lua.lua +++ b/lua/gpm/sources/lua.lua @@ -104,11 +104,10 @@ Import = promise.Async( function( filePath, parentPackage, isAutorun ) local send = metadata.send if send ~= nil then for _, filePath in ipairs( send ) do - if not fs.Exists( filePath, luaRealm ) then - filePath = paths.Join( packagePath, filePath ) - end - - if fs.Exists( filePath, luaRealm ) then + local insideFilePath = paths.Join( packagePath, filePath ) + if fs.Exists( insideFilePath, luaRealm ) then + AddCSLuaFile( insideFilePath ) + elseif fs.Exists( filePath, luaRealm ) then AddCSLuaFile( filePath ) end end