From 176330e352fe8596c0f84d27c0a7a45e97e1c736 Mon Sep 17 00:00:00 2001 From: Albirew Date: Tue, 25 May 2021 19:18:40 +0200 Subject: [PATCH] removed regression --- ButtonForge.toc | 4 ++-- Const.lua | 2 +- Util.lua | 19 ++++++++++--------- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/ButtonForge.toc b/ButtonForge.toc index af65eb4..a56b7c0 100644 --- a/ButtonForge.toc +++ b/ButtonForge.toc @@ -1,6 +1,6 @@ ## Interface: 20501 -## Title: Button Forge |cff69f0d1(Classic BC)|r -## Version: 1.0.3-classic-BC +## Title: Button Forge |cff69f0d1(Classic-TBC)|r +## Version: 1.0.5-classic-TBC ## Author: Massiner of Nathrezim, Albirew ## Notes: Add as many or few extra Action Bars and Buttons to your user interface to complement the standard (or other) Action Bars ## SavedVariables: ButtonForgeGlobalSettings, ButtonForgeGlobalProfiles, ButtonForgeGlobalBackup diff --git a/Const.lua b/Const.lua index 1119ee7..a74d09f 100644 --- a/Const.lua +++ b/Const.lua @@ -10,7 +10,7 @@ local Const = BFConst; Const.SUMMON_RANDOM_FAVORITE_MOUNT_SPELL = 150544; Const.SUMMON_RANDOM_FAVORITE_MOUNT_ID = 268435455; Const.Version = 1.0; -Const.VersionMinor = 0.2; +Const.VersionMinor = 0.5; Const.MAX_ACCOUNT_MACROS = 120; Const.ButtonNaming = "ButtonForge" Const.ButtonSeq = 1; --This value will increment (so not technically a const...) diff --git a/Util.lua b/Util.lua index 51e3fd7..1067c3b 100644 --- a/Util.lua +++ b/Util.lua @@ -1888,15 +1888,16 @@ function Util.CacheCompanions() Util.Critters[Name] = i; end]] --- Util.Mounts = {}; --- for i, mountID in pairs(C_MountJournal.GetMountIDs()) do --- local creatureName, spellID = C_MountJournal.GetMountInfoByID(mountID); --- if (not creatureName) then --- return; --- end --- Util.Mounts[spellID] = mountID; --- end --- Util.CompanionsCached = true; + Util.Mounts = {}; + --[[ + for i, mountID in pairs(C_MountJournal.GetMountIDs()) do + local creatureName, spellID = C_MountJournal.GetMountInfoByID(mountID); + if (not creatureName) then + return; + end + Util.Mounts[spellID] = mountID; + end + Util.CompanionsCached = true;]] end function Util.LookupCompanion(Name)