From 7fbbf2f98d8256897d62a59cd0870ae76557bb14 Mon Sep 17 00:00:00 2001 From: Albirew Date: Sat, 20 Feb 2021 14:13:01 +0100 Subject: [PATCH] fixed issue 70 https://www.curseforge.com/wow/addons/button-forge/issues/70 --- ButtonForge.toc | 2 +- Util.lua | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/ButtonForge.toc b/ButtonForge.toc index 6e27329..64662c4 100644 --- a/ButtonForge.toc +++ b/ButtonForge.toc @@ -1,6 +1,6 @@ ## Interface: 11306 ## Title: Button Forge |cff69ccf0(Classic)|r -## Version: 1.0.3-classic +## Version: 1.0.3-classic-1 ## 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/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)