WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit aaf09e9

Browse files
committed
Properly check MOD_VERSION constants on install command
Fixes #9
1 parent 68400fd commit aaf09e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"addons": [
33
{
44
"id": "plugin_manager",
5-
"version": "0.1.1",
5+
"version": "0.1.1.2",
66
"description": "A GUI interface to Adam's pragtical plugin manager.",
77
"type": "plugin",
88
"path": "plugins/plugin_manager",

plugins/plugin_manager/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ command.add(nil, {
488488
local items = {}
489489
if not PluginManager.addons then return end
490490
for i, addon in ipairs(PluginManager.addons) do
491-
if not addon.mod_version or tostring(addon.mod_version) == tostring(MOD_VERSION) and addon.status == "available" then
491+
if not addon.mod_version or tostring(addon.mod_version) == tostring(rawget(_G, "MOD_VERSION_MAJOR") or rawget(_G, "MOD_VERSION")) and addon.status == "available" then
492492
table.insert(items, addon.id .. ":" .. addon.version)
493493
end
494494
end

0 commit comments

Comments
 (0)