From 79a8ec5f3a00251145c2c0d1e6b0639eb4d65f66 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Sun, 30 Apr 2023 18:26:37 +0200 Subject: [PATCH] Update plugin.lua --- Basalt/plugin.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Basalt/plugin.lua b/Basalt/plugin.lua index 11c850e..373a9fe 100644 --- a/Basalt/plugin.lua +++ b/Basalt/plugin.lua @@ -5,7 +5,7 @@ local dir = fs.getDir(args[2] or "Basalt") local pluginDir = fs.combine(dir, "plugins") if(packaged)then for k,v in pairs(getProject("plugins"))do - local newPlugin = require(v:gsub(".lua", "")) + local newPlugin = v() if(type(newPlugin)=="table")then for a,b in pairs(newPlugin)do if(type(a)=="string")then @@ -53,4 +53,4 @@ return { end return objects end -} \ No newline at end of file +}