diff --git a/project/src/routers/EventOutputHolder.ts b/project/src/routers/EventOutputHolder.ts index 21a3d56b..7739a6d2 100644 --- a/project/src/routers/EventOutputHolder.ts +++ b/project/src/routers/EventOutputHolder.ts @@ -196,14 +196,14 @@ export class EventOutputHolder for (const productionKey in productions) { const production = productions[productionKey]; - if (production.sptIsComplete && production.sptIsContinuous) + if (production?.sptIsComplete && production?.sptIsContinuous) { // Water collector / Bitcoin etc production.sptIsComplete = false; production.Progress = 0; production.StartTimestamp = this.timeUtil.getTimestamp(); } - else if (!production.inProgress) + else if (!production?.inProgress) { // Normal completed craft, delete delete productions[productionKey];