NeatPlates

NeatPlates

7M Downloads

NeatPlates causes Lua error every now and then

silverhawke249 opened this issue ยท 2 comments

commented

After updating to new version, sometimes a Lua error would occur (seemingly when a new nameplate comes into view).
The pastebin link has a dump of the locals the first time it happened: https://pastebin.com/SgB6sb5z
Subsequent errors simply says Interface\AddOns\NeatPlatesHub\functions\Color-Color.lua:292: Usage: UnitPowerType("unit"[, index]).

commented

I've made an update that I believe should fix this issue. Should be live shortly over on curse.

At least for the time being, this is similar to other issues that have happened in the past so it's probably due to some underlying issue with how the data loop currently works, where it occasionally tries to use values that don't yet exists. In this case the 'unitid' used to get the units powertype.

commented

I can confirm the most recent update as of now fixes the issue -- no Lua errors popping up so far.