Skip to content

Commit

Permalink
Update method for new ping template
Browse files Browse the repository at this point in the history
Fixes #30
  • Loading branch information
p3lim committed May 3, 2023
1 parent 58f9996 commit 1296602
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PinProvider.lua
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,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 @@ -165,7 +165,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 1296602

Please sign in to comment.