Update plugin.lua

This commit is contained in:
Robert Jelic
2023-04-30 18:26:37 +02:00
committed by GitHub
parent 999a563a3e
commit 79a8ec5f3a

View File

@@ -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
}
}