diff --git a/lua/gpm/fs.lua b/lua/gpm/fs.lua index 0d6fe5ed..f16b3bff 100644 --- a/lua/gpm/fs.lua +++ b/lua/gpm/fs.lua @@ -227,9 +227,9 @@ local asyncSources = { { CanBeInstalled = asyncio ~= nil, Functions = { - append = asyncio.Append, - write = asyncio.Write, - read = asyncio.Read + append = asyncio and asyncio.Append, + write = asyncio and asyncio.Write, + read = asyncio and asyncio.Read } }, { diff --git a/lua/gpm/init.lua b/lua/gpm/init.lua index 8d1e34b8..423d4974 100644 --- a/lua/gpm/init.lua +++ b/lua/gpm/init.lua @@ -32,7 +32,7 @@ Msg( [[ module( "gpm", package.seeall ) StartTime = SysTime() -VERSION = "1.52.0" +VERSION = "1.52.1" if not Colors then Realm = "unknown" @@ -313,11 +313,6 @@ end includeComponent "commands" ClearCache() -if SERVER or MENU_DLL or game.IsDedicated() then - ImportFolder( "packages", nil, true ) -else - util.NextTick( ImportFolder, "packages", nil, true ) -end - +ImportFolder( "packages", nil, true ) Logger:Info( "Time taken to start-up: %.4f sec.", SysTime() - StartTime ) hook.Run( "GPM - Initialized" ) \ No newline at end of file