Removed return in load(dir) function. it was only loading the first file and no more

pull/1/head
Ciscoh Bellic 1 year ago
parent 8a6308c584
commit 3877c58b0c
  1. 2
      src/_bastion.lua

@ -40,7 +40,7 @@ local function Load(dir)
for i = 1, #files do for i = 1, #files do
local file = files[i] local file = files[i]
if file:sub(-4) == ".lua" or file:sub(-5) == '.luac' then if file:sub(-4) == ".lua" or file:sub(-5) == '.luac' then
return Bastion:Require(dir .. file:sub(1, -5)) Bastion:Require(dir .. file:sub(1, -5))
end end
end end
end end

Loading…
Cancel
Save