Skip to content

Commit

Permalink
Update missed expansion checks for Cataclysm Classic
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevcairiel committed May 6, 2024
1 parent e51e499 commit efb6567
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Options/Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ local AceConfigDialog = LibStub("AceConfigDialog-3.0")
local error, select, pairs = error, select, pairs
local WoWClassic = (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE)
local WoWWrath = (WOW_PROJECT_ID == WOW_PROJECT_WRATH_CLASSIC)
local WoWCata = (WOW_PROJECT_ID == WOW_PROJECT_CATACLYSM_CLASSIC)
local WoW10 = select(4, GetBuildInfo()) >= 100000
local SaveBindings = SaveBindings or AttemptToSaveBindings

Expand All @@ -30,7 +31,7 @@ end
local s_HookedKeyBound, s_KeyBoundHookShowBTOptions
local KB = LibStub("LibKeyBound-1.0")
local LDBIcon = LibStub("LibDBIcon-1.0", true)
local LibDualSpec = (not WoWClassic or WoWWrath) and LibStub("LibDualSpec-1.0", true)
local LibDualSpec = (not WoWClassic or WoWWrath or WoWCata) and LibStub("LibDualSpec-1.0", true)

local function generateOptions()
Bartender4.options = {
Expand Down
3 changes: 2 additions & 1 deletion PetBar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ local ButtonBar = Bartender4.ButtonBar.prototype

local WoWRetail = (WOW_PROJECT_ID == WOW_PROJECT_MAINLINE)
local WoWWrath = (WOW_PROJECT_ID == WOW_PROJECT_WRATH_CLASSIC)
local WoWCata = (WOW_PROJECT_ID == WOW_PROJECT_CATACLYSM_CLASSIC)

local setmetatable, select = setmetatable, select

Expand Down Expand Up @@ -60,7 +61,7 @@ function PetBarMod:OnEnable()
self.bar:RegisterEvent("PET_BAR_UPDATE_USABLE")
self.bar:RegisterEvent("PET_UI_UPDATE")
self.bar:RegisterEvent("PLAYER_TARGET_CHANGED")
if WoWRetail or WoWWrath then
if WoWRetail or WoWWrath or WoWCata then
self.bar:RegisterEvent("UPDATE_VEHICLE_ACTIONBAR")
end
self.bar:RegisterEvent("PLAYER_MOUNT_DISPLAY_CHANGED")
Expand Down

0 comments on commit efb6567

Please sign in to comment.