Revert addon-folder texture resolution (assume MetaHunt folder)

This commit is contained in:
DuvelCorp
2026-09-15 08:06:57 +02:00
parent ea01c9ef15
commit d49ed5abcc
2 changed files with 1 additions and 18 deletions
-17
View File
@@ -1,23 +1,6 @@
MTH_CONST = MTH_CONST or {}
MTH_CONST.version = MTH_CONST.version or "2.0.0"
-- Our AddOns folder name as actually installed. Forgejo/Codeberg zip downloads
-- force the archive's root folder to lowercase (forgejo bug #800), so resolve
-- the real casing here and build texture paths from it.
MTH_CONST.addonFolder = MTH_CONST.addonFolder or "MetaHunt"
if type(GetNumAddOns) == "function" and type(GetAddOnInfo) == "function" then
local i = 1
local total = GetNumAddOns() or 0
while i <= total do
local folder = GetAddOnInfo(i)
if type(folder) == "string" and string.lower(folder) == "metahunt" then
MTH_CONST.addonFolder = folder
break
end
i = i + 1
end
end
MTH_CONST.WEAPON_TYPES = {
BOWS = "Bows",
CROSSBOWS = "Crossbows",