Skip to content

Commit

Permalink
Patch4
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown-gd committed Jun 3, 2023
1 parent 932bb29 commit 16c46fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lua/gpm/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ MsgN( [[

module( "gpm", package.seeall )

_VERSION = 013003
_VERSION = 013004

if not Colors then
Realm = "unknown"
Expand Down
12 changes: 6 additions & 6 deletions lua/gpm/sources/lua.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local fs = gpm.fs

-- Variables
local SERVER = SERVER
local AddCSLuaFile = SERVER and AddCSLuaFile
local addClientLuaFile = SERVER and package.AddClientLuaFile
local moonloader = moonloader
local ipairs = ipairs
local type = type
Expand Down Expand Up @@ -126,17 +126,17 @@ if SERVER then
function SendToClient( metadata )
local packagePath = metadata.package_path
if packagePath then
AddCSLuaFile( packagePath )
addClientLuaFile( packagePath )
end

local cl_main = metadata.cl_main
if type( cl_main ) == "string" then
AddCSLuaFile( cl_main )
addClientLuaFile( cl_main )
end

local main = metadata.main
if main then
AddCSLuaFile( metadata.main )
addClientLuaFile( metadata.main )
end

local send = metadata.send
Expand All @@ -146,9 +146,9 @@ if SERVER then
for _, filePath in ipairs( send ) do
local localFilePath = folder .. "/" .. filePath
if fs.IsFile( "lua/" .. localFilePath, "GAME" ) then
AddCSLuaFile( localFilePath )
addClientLuaFile( localFilePath )
elseif fs.IsFile( "lua/" .. filePath, "GAME" ) then
AddCSLuaFile( filePath )
addClientLuaFile( filePath )
end
end
end
Expand Down

0 comments on commit 16c46fd

Please sign in to comment.