Update init.lua
Accidentally changed package.path to nil in certain cases. Oopsie #fixed
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
local curDir = fs.getDir(table.pack(...)[2]) or ""
|
||||
|
||||
local defaultPath = package.path
|
||||
if not(packed)then
|
||||
local defaultPath = package.path
|
||||
local format = "path;/path/?.lua;/path/?/init.lua;"
|
||||
|
||||
local main = format:gsub("path", curDir)
|
||||
@@ -14,4 +14,4 @@ end
|
||||
local Basalt = require("main")
|
||||
package.path = defaultPath
|
||||
|
||||
return Basalt
|
||||
return Basalt
|
||||
|
||||
Reference in New Issue
Block a user