mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-31 19:29:11 +00:00
Update netrequire.lua
This commit is contained in:
parent
280fa345ed
commit
5abb2a41f2
@ -3,8 +3,8 @@ local function netrequire(_name, alwaysDownload, ...)
|
|||||||
local DL_path = ".netrequire_storage"
|
local DL_path = ".netrequire_storage"
|
||||||
|
|
||||||
local name
|
local name
|
||||||
if _name:sub(-4, -1) ~= ".lua" then
|
if _name:sub(-4, -1) == ".lua" then
|
||||||
name = _name .. ".lua"
|
name = _name:sub(1, -5)
|
||||||
else
|
else
|
||||||
name = _name
|
name = _name
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user