View Single Post
09-27-18, 10:40 AM   #11
superfula
A Deviate Faerie Dragon
Join Date: Mar 2006
Posts: 14
Originally Posted by Rilgamon View Post
Lua Code:
  1. local azeriteItemLocation = C_AzeriteItem.FindActiveAzeriteItem()
  2.         if (not azeriteItemLocation) then
  3.             return
  4.         end

Your code is a little difficult to read so I'm not 100% sure. But your code above would probably simply stop exactly here and dont execute code listed after that. Try to make your code more modular. So that every part is only accessed when it should.
It is a mess. I'm fairly new to Lua so it's a mixture of a previous addon, figuring things out, and borrowing from others.

I pulled that part from https://www.townlong-yak.com/framexm...AzeriteBar.lua so I thought it may be needed. I could be misreading, but I read it as if the code doesn't find an Azerite Item it stops. The large commented section above that was my initial attempt but for some reason the Azerite bar doesn't show at all with that bit of code used instead of what is running now.
  Reply With Quote