Update plugin.lua

Small fix
This commit is contained in:
Robert Jelic
2023-05-14 22:05:42 +02:00
parent e210939988
commit c549403988

View File

@@ -17,8 +17,8 @@ if(packaged)then
end
end
end
end
if(fs.exists(pluginDir))then
else
if(fs.exists(pluginDir))then
for _,v in pairs(fs.list(pluginDir))do
table.insert(pluginNames, v)
local newPlugin = require(v:gsub(".lua", ""))
@@ -31,6 +31,7 @@ if(fs.exists(pluginDir))then
end
end
end
end
end
local function get(name)