From efdb01328f16a96cd6c67169e1c3abc5148d067c Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Mon, 7 Aug 2023 13:25:57 +1000 Subject: [PATCH] I don't know why it was looking at package.loaded but it isn't now. --- lib/rc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rc.lua b/lib/rc.lua index 191d0ec..4031520 100644 --- a/lib/rc.lua +++ b/lib/rc.lua @@ -24,7 +24,7 @@ local function saveConfig() end function rc.load(name,force) -- string boolean -- table -- Attempts to load service *name*, and if *force* is true, replaces the current instance. - if not package.loaded[name] or force then + if not service[name] or force then for d in rc.paths:gmatch("[^\n]+") do if fs.exists(d.."/"..name..".lua") then service[name] = runfile(d.."/"..name..".lua")