Ok i tried to remove that whole bit of code:
Code:
frame:SetScript("OnEvent", function(self, event, ...)
if (event == "VARIABLES_LOADED") then
self:UnregisterEvent("VARIABLES_LOADED");
self:RegisterEvent("CVAR_UPDATE");
if (GetCVarBool("breakUpLargeNumbers")) then
SetCVar("breakUpLargeNumbers", nil);
end
BetterItemTooltip:OnInitialize();
elseif (event == "CVAR_UPDATE") then
if (GetCVarBool("breakUpLargeNumbers")) then
SetCVar("breakUpLargeNumbers", nil);
end
end
end);
frame:RegisterEvent("VARIABLES_LOADED");
But will stop the addon from working all together how about i change both bits of code that say:
SetCVar("breakUpLargeNumbers", nil)
to
SetCVar("breakUpLargeNumbers", 1)
whould that work?
Also you guys said VARIABLES_LOADED not work great is it fine to replace it with ADDON_LOADED or whould i need to change more code.