diff 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
line wrap: on
line diff
--- a/WhistleMaster_LDB.lua	Sat Nov 05 23:57:16 2016 -0400
+++ b/WhistleMaster_LDB.lua	Sun Nov 06 01:12:18 2016 -0400
@@ -15,8 +15,11 @@
 	elapsed = elapsed + elap
 	if elapsed < UPDATEPERIOD then return end
 	elapsed = 0
-	
-	dataobj.text = WM_ClosestNode.name
+	if UpdateWhistleMaster() then
+		dataobj.text = WM_ClosestNode.name
+	else
+		dataobj.txt = "N/A"
+	end
 
 end)