Fix spurious 'Missing event data' error for triggerEnd objectives with no coordinates

QuestieQuestPrivates.lua: event handler now returns nil silently when
Coordinates is nil, instead of logging a visible error. Nil coordinates
are valid for server-tracked objectives (complete N quests in zone) that
have no map pin.
This commit is contained in:
Xurkon
2026-02-21 00:08:33 -06:00
parent b8d2d5a9ea
commit 9771a53869
3 changed files with 8 additions and 3 deletions
+5
View File
@@ -1,5 +1,10 @@
# Changelog # Changelog
## v9.7.7
### Fixes
- **[Quest]** Fixed "Missing event data for Objective" error appearing in chat for all `triggerEnd` quests with no map coordinates (e.g., "complete N quests in zone" types). Nil coordinates are valid for server-tracked objectives with no pin — the handler now returns silently instead of logging a visible error.
## v9.7.6 ## v9.7.6
### Fixes ### Fixes
+2 -2
View File
@@ -170,8 +170,8 @@ end
event = function(eventId, objective) event = function(eventId, objective)
local spawns = objective.Coordinates local spawns = objective.Coordinates
if (not spawns) then if (not spawns) then
Questie:Error("Missing event data for Objective:", objective.Description, "id:", eventId) Questie:Debug(Questie.DEBUG_DEVELOP, "No coordinates for event objective:", objective.Description, "id:", eventId)
spawns = {} return nil
end end
---@type SpawnListEvent ---@type SpawnListEvent
+1 -1
View File
@@ -6,7 +6,7 @@
## Notes-esES: Ayundante de misión ## Notes-esES: Ayundante de misión
## Notes-ptBR: Ajudante de missão ## Notes-ptBR: Ajudante de missão
## Notes-frFR: Assistant de quête ## Notes-frFR: Assistant de quête
## Version: 9.7.6 ## Version: 9.7.7
## RequiredDeps: ## RequiredDeps:
## OptionalDeps: Ace3, CallbackHandler-1.0, HereBeDragons, LibDataBroker-1.1, LibDBIcon-1.0, LibSharedMedia-3.0, LibStub, LibUIDropDownMenu ## OptionalDeps: Ace3, CallbackHandler-1.0, HereBeDragons, LibDataBroker-1.1, LibDBIcon-1.0, LibSharedMedia-3.0, LibStub, LibUIDropDownMenu
## SavedVariables: QuestieConfig ## SavedVariables: QuestieConfig