Skip to content

Commit

Permalink
fix(map): update method for world map ping
Browse files Browse the repository at this point in the history
  • Loading branch information
ffainy committed May 5, 2023
1 parent 303bf37 commit a9499c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/quest/better-world-quests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function DataProvider:RefreshAllData()
Pin:RefreshVisuals()
Pin:SetPosition(questInfo.x, questInfo.y)

if self.pingPin and self.pingPin:IsAttachedToQuest(questID) then
if self.pingPin and self.pingPin:GetID() == questID then
self.pingPin:SetScalingLimits(1, 1, 1)
self.pingPin:SetPosition(questInfo.x, questInfo.y)
end
Expand All @@ -92,7 +92,7 @@ function DataProvider:RefreshAllData()

for questID in next, pinsToRemove do
-- iterate and remove all pins marked for removal
if self.pingPin and self.pingPin:IsAttachedToQuest(questID) then
if self.pingPin and self.pingPin:GetID() == questID then
self.pingPin:Stop()
end

Expand Down

0 comments on commit a9499c0

Please sign in to comment.