From c2a9515792df186c2c4f4e987088bc0b9c5ccbdd Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Fri, 8 Mar 2024 12:32:48 -0500 Subject: Fixed issue with rawget, and removed unecessary checksum. --- plugins/plugin_manager/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/plugin_manager/init.lua b/plugins/plugin_manager/init.lua index dcc987e..68e8d0b 100644 --- a/plugins/plugin_manager/init.lua +++ b/plugins/plugin_manager/init.lua @@ -250,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(rawget(_G, MOD_VERSION_MAJOR) or rawget(_G, MOD_VERSION)) 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