plugins: only check mod version

This commit is contained in:
jgmdev 2022-05-31 16:29:14 -04:00
parent 83f368cdbe
commit 214f36157a
1 changed files with 0 additions and 7 deletions

View File

@ -876,13 +876,6 @@ local function get_plugin_details(filename)
if mod_version then
version_match = (mod_version == MOD_VERSION)
end
-- The following pattern is used for backward compatibility only
-- Future versions will look only at the mod-version tag.
local version = line:match('%-%-%s*lite%-xl%s*(%d+%.%d+)$')
if version then
-- we consider the version tag 2.0 equivalent to mod-version:2
version_match = (version == '2.0' and MOD_VERSION == "2")
end
end
if not priority then
priority = line:match('%-%-.*%f[%a]priority%s*:%s*(%d+)')