From 636ed0001fdde047d509b714b67e278e9f7685b2 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Fri, 9 Dec 2022 07:18:00 +0100 Subject: [PATCH] Update init.lua Accidentally changed package.path to nil in certain cases. Oopsie #fixed --- Basalt/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Basalt/init.lua b/Basalt/init.lua index b005b2e..cfb92d5 100644 --- a/Basalt/init.lua +++ b/Basalt/init.lua @@ -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 \ No newline at end of file +return Basalt