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:
@@ -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
|
||||||
|
|||||||
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user