From 397fe7dbf4c6fbcd1e4418f7327deeb2094a0b4e Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Thu, 26 Mar 2009 10:04:41 +0100 Subject: [PATCH] Prevent changing the Vehicle UI option while on a vehicle to avoid serious breakage. --- Options/Options.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Options/Options.lua b/Options/Options.lua index a4d655a..d90e6a4 100644 --- a/Options/Options.lua +++ b/Options/Options.lua @@ -80,6 +80,10 @@ local function getOptions() width = "full", get = getFunc, set = function(info, value) + if UnitHasVehicleUI("player") then + Bartender4:Print(L["You have to exit the vehicle in order to be able to change the Vehicle UI settings."]) + return + end Bartender4.db.profile.blizzardVehicle = value Bartender4:UpdateBlizzardVehicle() end,