Classic WoW doesn't understand the new vehicle code.
version: 3.6.14
Date: 2021-04-12 20:08:07
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\ChocolateBar\Jostle.lua line 135:
attempt to call global 'UnitInVehicle' (a nil value)
Debug:
ChocolateBar\Jostle.lua:135:
ChocolateBar\Jostle.lua:134
ChocolateBar\Jostle.lua:161:
ChocolateBar\Jostle.lua:158
(tail call): ?
Locals:
(temporary) = nil
(temporary) = "Player"
(*temporary) = "attempt to call global 'UnitInVehicle' (a nil value)"
ChocolateBar =
{
OnEnterWorld = defined @Interface\AddOns\ChocolateBar\Core.lua:251
SetDefaultModuleLibraries = defined @Interface\AddOns\BCT\Libs\AceAddon-3.0\AceAddon-3.0.lua:367
TempDisAutohide = defined @Interface\AddOns\ChocolateBar\Core.lua:408
GetChocolate = defined @Interface\AddOns\ChocolateBar\Core.lua:424
OnLeaveCombat = defined @Interface\AddOns\ChocolateBar\Core.lua:295
modules =
{
}
CancelTimer = defined @Interface\AddOns\Broker_DurabilityInfo\Libs\AceTimer-3.0\AceTimer-3.0.lua:147
IterateEmbeds = defined @Interface\AddOns\BCT\Libs\AceAddon-3.0\AceAddon-3.0.lua:442
Jostle =
{
}
OnDatabaseShutdown = defined @Interface\AddOns\ChocolateBar\Core.lua:161
AnchorBars = defined @Interface\AddOns\ChocolateBar\Core.lua:502
Printf = defined @Interface\AddOns\Atlas\Libs\AceConsole-3.0\AceConsole-3.0.lua:69
SetDefaultModulePrototype = defined @Interface\AddOns\BCT\Libs\AceAddon-3.0\AceAddon-3.0.lua:409
isClassicWoW = true
defaultModuleState = true
IsEnabled = defined @Interface\AddOns\BCT\Libs\AceAddon-3.0\AceAddon-3.0.lua:451
LibDataBroker_DataObjectCreated = defined @Interface\AddOns\ChocolateBar\Core.lua:316
ScheduleTimer = defined @Interface\AddOns\Broker_DurabilityInfo\Libs\AceTimer-3.0\AceTimer-3.0.lua:94
DisableModule = defined @Interface\AddOns\BCT\Libs\AceAddon-3.0\AceAddon-3.0.lua:350
UpdateDB = defined @Interface\AddOns\ChocolateBar\Core.lua:603
RegisterMessage = defined @Interface\AddOns\Ara_Broker_Guild_Friends\libs\CallbackHandler-1.0.lua:90
UnregisterMessage = defined @Interface\AddOns\Ara_Broker_Guild_Friends\libs\CallbackHandler-1.0.lua:153
SetBars = defined @Interface\AddOns\ChocolateBar\Core.lua:440
AddBarOptions = defined @Interface\AddOns\ChocolateBar\Options.lua:1421
OnPetBattleOpen = defined @Interface\AddOns\ChocolateBar\Core.lua:257
OpenOptions = defined @Interface\AddOns\ChocolateBar\Options.lua:1400
SetEnabledState = defined @Interface\AddOns\BCT\Libs\AceAddon-3.0\AceAddon-3.0.lua:424
enabledState = true
RegisterEvent = defined @Interface\AddOns\Ara_Broker_Guild_Friends\libs\CallbackHandler-1.0.lua:90
IterateModules = defined @Interface\AddOns\BCT\Libs\AceAddon-3.0\AceAddon-3.0.lua:437
GetBars = defined @Interface\AddOns\ChocolateBar\Core.lua:436
UpdateJostle = defined @Interface\AddOns\ChocolateBar\Core.lua:219
Bar =
{
}
InCombat = false
db =
{
}
baseName = "ChocolateBar"
OnInitialize = defined @Interface\AddOns\ChocolateBar\Core.lua:86
UnregisterAllEvents = defined @Interface\AddOns\Ara_Broker_Guild_Friends\libs\CallbackHandler-1.0.lua:174
AddBar = defined @Interface\AddOns\ChocolateBar\Core.lua:477
UpdateBarOptions = defined @Interface\AddOns\ChocolateBar\Options.lua:1791
RemoveBar = defined @Interface\AddOns\ChocolateBar\Options.lua:1774
GetModule = defined @Interface\AddOns\BCT\Libs\AceAddon-3.0\AceAddon-3.0.lua:210
RegisterOptions = defined @Interface\AddOns\ChocolateBar\Options.lua:1380
AddCustomPluginOptions = defined @Interface\AddOns\ChocolateBar\Options.lua:1765
AddDefaultModuleOptions = defined @Interface\AddOns\ChocolateBar\Options.lua:1739
defaultModuleLibraries =
While I'm sure this can be done more eloquently, this will fix the error:
~Line 139 of Jostle.lua:
local function LockMainMenuBar()
if not ChocolateBar.isClassicWoW then
if not InCombatLockdown() and not UnitInVehicle("Player") then
MainMenuBar:SetMovable(true)
MainMenuBar:SetUserPlaced(true)
ChocolateBar:Debug("LockMainMenuBar")
MainMenuBar:SetMovable(false)
end
end
if ChocolateBar.isClassicWoW then
if not InCombatLockdown() then
MainMenuBar:SetMovable(true)
MainMenuBar:SetUserPlaced(true)
ChocolateBar:Debug("LockMainMenuBar")
MainMenuBar:SetMovable(false)
end
end
end
Classic WoW doesn't understand the new vehicle code. version: 3.6.14
Date: 2021-04-12 20:08:07 ID: 1 Error occured in: Global Count: 1 Message: ..\AddOns\ChocolateBar\Jostle.lua line 135: attempt to call global 'UnitInVehicle' (a nil value) Debug: ChocolateBar\Jostle.lua:135: ChocolateBar\Jostle.lua:134 ChocolateBar\Jostle.lua:161: ChocolateBar\Jostle.lua:158 (tail call): ? Locals: (temporary) = nil (temporary) = "Player" (*temporary) = "attempt to call global 'UnitInVehicle' (a nil value)" ChocolateBar =
While I'm sure this can be done more eloquently, this will fix the error: ~Line 139 of Jostle.lua: