Skip to content

Commit

Permalink
Fix questie api
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils89 committed Nov 9, 2024
1 parent fab6d21 commit e9d99d2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
3.3.13-Era
- Fix Questie API

3.3.12-Era
- Update for 1.15.4

Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG_NEW_VERSION.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
3.3.13-Era
- Fix Questie API

3.3.12-Era
- Update for 1.15.4

Expand Down
4 changes: 4 additions & 0 deletions changelog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ local ct = {
}
GW.CHANGELOGS_TYPES = ct

addChange("3.3.13",{
{ct.change,[=[Fix Questie API]=]},
})

addChange("3.3.12",{
{ct.change,[=[Update for 1.15.4]=]},
})
Expand Down
2 changes: 1 addition & 1 deletion objectives/notifications.lua
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ local function getNearestQuestPOI()
end
end
if shouldCheck then
local spawn, zone, name = QuestieLoader:ImportModule("QuestieMap"):GetNearestQuestSpawn(questieQuest)
local spawn, zone, name = QuestieLoader:ImportModule("DistanceUtils").GetNearestSpawnForQuest(questieQuest)
if spawn and zone and name then
if QuestieLoader:ImportModule("ZoneDB"):GetUiMapIdByAreaId(zone) == GW.locationData.mapID then
local distance = _GetDistanceToClosestObjective(spawn, zone, name)
Expand Down
4 changes: 2 additions & 2 deletions objectives/objectives.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ local tomTomWaypoint = nil
local function AddTomTomWaypoint(questId, objective)
if TomTom and TomTom.AddWaypoint and Questie and Questie.started then
local QuestieQuest = QuestieLoader:ImportModule("QuestieDB").GetQuest(questId)
local spawn, zone, name = QuestieLoader:ImportModule("QuestieMap"):GetNearestQuestSpawn(QuestieQuest)
local spawn, zone, name = QuestieLoader:ImportModule("DistanceUtils").GetNearestSpawnForQuest(QuestieQuest)
if (not spawn) and objective ~= nil then
spawn, zone, name = QuestieMap:GetNearestSpawn(objective)
spawn, zone, name = QuestieLoader:ImportModule("DistanceUtils").GetNearestSpawn(objective)
end
if spawn then
if tomTomWaypoint and TomTom.RemoveWaypoint then -- remove old waypoint
Expand Down

0 comments on commit e9d99d2

Please sign in to comment.