Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghostopheles committed Jun 20, 2024
1 parent ec58f5d commit 51a774b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Datamine/Modules/Tooltips/Tooltips.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ local TAB = strrep(" ", TAB_SIZE);
local CURRENT_TOOLTIP = nil;

local MODEL = CreateFrame("PlayerModel");
MODEL:SetKeepModelOnHide(true);

------------
-- tooltip context management
Expand Down Expand Up @@ -129,7 +128,7 @@ function Tooltips.ParseBattlePetLink(battlePetLink)
return Datamine.Structures.CreateBattlePetLink(battlePetLink);
end

function Tooltips.GetUnitDisplayID(creatureID)
function Tooltips.GetCreatureDisplayID(creatureID)
MODEL:SetCreature(creatureID);
return MODEL:GetDisplayInfo();
end
Expand Down Expand Up @@ -405,7 +404,7 @@ function Tooltips.OnTooltipSetUnit(tooltip)
end

if Tooltips.ShouldShow("TooltipUnitShowDisplayID") then
local displayID = Tooltips.GetUnitDisplayID(creatureID);
local displayID = Tooltips.GetCreatureDisplayID(creatureID);
Tooltips.Append("DisplayID", displayID);
end

Expand Down

0 comments on commit 51a774b

Please sign in to comment.