comparison WhistleMaster_LDB.lua @ 8:e7f7baf8475f

Fix for LDB plugin displaying wrong info when not in the broken isles
author Vynn <mischivin@gmail.com>
date Sun, 06 Nov 2016 01:12:18 -0400
parents 73d6c2ccdd91
children 237c9958b251
comparison
equal deleted inserted replaced
7:bfd040e221bb 8:e7f7baf8475f
13 13
14 f:SetScript("OnUpdate", function(self, elap) 14 f:SetScript("OnUpdate", function(self, elap)
15 elapsed = elapsed + elap 15 elapsed = elapsed + elap
16 if elapsed < UPDATEPERIOD then return end 16 if elapsed < UPDATEPERIOD then return end
17 elapsed = 0 17 elapsed = 0
18 18 if UpdateWhistleMaster() then
19 dataobj.text = WM_ClosestNode.name 19 dataobj.text = WM_ClosestNode.name
20 else
21 dataobj.txt = "N/A"
22 end
20 23
21 end) 24 end)
22 25
23 function dataobj:OnTooltipShow() 26 function dataobj:OnTooltipShow()
24 self:AddLine("Click to open the World Map") 27 self:AddLine("Click to open the World Map")