mirror of
https://github.com/DaanVandenBosch/phantasmal-world.git
synced 2025-04-06 08:08:28 +08:00
Logging when duplicate events are encountered.
This commit is contained in:
parent
5f1b3d5ff1
commit
95da6e9e57
@ -88,6 +88,9 @@ function build_event_dags(dat_events: readonly DatEvent[]): QuestEventDagModel[]
|
|||||||
|
|
||||||
if (data && data.event) {
|
if (data && data.event) {
|
||||||
event_model = data.event;
|
event_model = data.event;
|
||||||
|
logger.warn(
|
||||||
|
`Ignored duplicate event #${data.event.id} for section ${data.event.section_id} of area ${data.event.area_id}.`,
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
event_model = new QuestEventModel(
|
event_model = new QuestEventModel(
|
||||||
event.id,
|
event.id,
|
||||||
|
Loading…
Reference in New Issue
Block a user