From df0a34afee0a1a199392b024277c1bb9d2062798 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 28 Jan 2024 14:22:50 -0500 Subject: Added fonts to lpm as a new type. --- plugins/plugin_manager/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/plugin_manager/init.lua b/plugins/plugin_manager/init.lua index 76f799a..dcc987e 100644 --- a/plugins/plugin_manager/init.lua +++ b/plugins/plugin_manager/init.lua @@ -167,6 +167,7 @@ function PluginManager:refresh(options) end end self.last_refresh = os.time() + core.redraw = true prom:resolve(addons) run({ "repo", "list" }, options.progress):done(function(repositories) self.repositories = json.decode(repositories)["repositories"] @@ -249,7 +250,7 @@ function PluginManager:get_addon(name_and_version, options) end local match = false for i, addon in ipairs(PluginManager.addons) do - if not addon.mod_version or tostring(addon.mod_version) == tostring(MOD_VERSION_MAJOR) and (addon.version == version or version == nil) then + if not addon.mod_version or tostring(addon.mod_version) == tostring(rawget(_G, MOD_VERSION_MAJOR) or rawget(_G, MOD_VERSION)) and (addon.version == version or version == nil) then promise:resolve(addon) match = true break -- cgit v1.2.3