Skip to content

Commit

Permalink
Patch1
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown-gd committed Jul 9, 2023
1 parent cd037b9 commit 61acfd5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions lua/gpm/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Msg( [[

module( "gpm", package.seeall )

_VERSION = 014100
_VERSION = 014101

if not Colors then
Realm = "unknown"
Expand Down Expand Up @@ -193,7 +193,11 @@ if not MENU_DLL then
IncludeComponent "commands"
end

ImportFolder( "packages", nil, true )
if SERVER or MENU_DLL then
ImportFolder( "packages", nil, true )
elseif not game.IsDedicated() then
util.NextTick( ImportFolder, "packages", nil, true )
end

Logger:Info( "Time taken to start-up: %.4f sec.", SysTime() - stopwatch )
hook.Run( "GPM - Initialized" )
2 changes: 1 addition & 1 deletion lua/gpm/package.lua
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ do
end

function Link( pkg, target )
if not pkg or not target then return end
if not pkg or not target then return false end
ArgAssert( pkg, 1, "Package" )

if IsPackage( target ) then
Expand Down

0 comments on commit 61acfd5

Please sign in to comment.