refactor(resource): load extra modules

This commit is contained in:
Linden
2024-04-01 19:15:04 +11:00
parent 989462da7d
commit 09ca963f26
3 changed files with 25 additions and 19 deletions

View File

@@ -108,7 +108,7 @@ end
---Loads the given module inside the current resource, returning any values returned by the file or `true` when `nil`.
---@param modname string
---@return unknown?
---@return unknown
function lib.require(modname)
if type(modname) ~= 'string' then return end