Skip to content

Commit

Permalink
fix UnitInVehicle error on classic
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuds committed Apr 17, 2021
1 parent ad9bbce commit e0b4a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jostle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function Jostle:PlayerFrame_SequenceFinished()
end

local function LockMainMenuBar()
if not InCombatLockdown() and not UnitInVehicle("Player") then
if not InCombatLockdown() and (not ChocolateBar.isClassicWoW and not UnitInVehicle("Player")) then
MainMenuBar:SetMovable(true)
MainMenuBar:SetUserPlaced(true)
ChocolateBar:Debug("LockMainMenuBar")
Expand Down

0 comments on commit e0b4a8b

Please sign in to comment.