Remove UnitIsUnit('player',X) checks, and change UnitName calls to use Details.playername

This commit is contained in:
Flamanis
2023-11-09 00:45:20 -06:00
parent bc0070cc6d
commit ce35713b50
10 changed files with 20 additions and 16 deletions
@@ -2356,7 +2356,11 @@ function StreamOverlay:OnEvent (_, event, ...)
local AddonName = select (1, ...)
if (AddonName == "Details_Streamer") then
playerName = UnitName ("player")
local interimPlayerName, playerRealm = UnitFullName ("player")
if(select(4, GetBuildInfo()) >= 100200) then
playerName = interimPlayerName .. '-' .. playerRealm
end
if (_G.Details) then