Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 5937ed9

Browse files
committed
Module new argument (override)
1 parent b9d0b89 commit 5937ed9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/autorun/!!!sh_plib.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ local globalStopwatch = SysTime()
3838
module( lowerName, package.seeall )
3939

4040
-- Lib Version
41-
Version = 020400
41+
Version = 020500
4242

4343
-- Developer Mode
4444
if (SERVER) then
@@ -280,11 +280,11 @@ do
280280
local SERVER = SERVER
281281
local CLIENT = CLIENT
282282

283-
function Require( moduleName, noErros )
283+
function Require( moduleName, noErros, override )
284284
ArgAssert( moduleName, 1, 'string' )
285285

286286
-- Re-installation lock
287-
if IsModuleInstalled( moduleName ) then
287+
if IsModuleInstalled( moduleName ) and not override then
288288
return modules[ moduleName ]
289289
end
290290

0 commit comments

Comments
 (0)