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

Commit

Permalink
Module new argument (override)
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown-gd committed Jan 6, 2023
1 parent b9d0b89 commit 5937ed9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/autorun/!!!sh_plib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ local globalStopwatch = SysTime()
module( lowerName, package.seeall )

-- Lib Version
Version = 020400
Version = 020500

-- Developer Mode
if (SERVER) then
Expand Down Expand Up @@ -280,11 +280,11 @@ do
local SERVER = SERVER
local CLIENT = CLIENT

function Require( moduleName, noErros )
function Require( moduleName, noErros, override )
ArgAssert( moduleName, 1, 'string' )

-- Re-installation lock
if IsModuleInstalled( moduleName ) then
if IsModuleInstalled( moduleName ) and not override then
return modules[ moduleName ]
end

Expand Down

0 comments on commit 5937ed9

Please sign in to comment.