From 933029f50f1a337e42ffa099c09ce588b1d41568 Mon Sep 17 00:00:00 2001 From: Isha Date: Thu, 7 Oct 2021 11:33:26 +0200 Subject: [PATCH] fix(save): Update next save on start --- src/ig-template/IgtGame.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ig-template/IgtGame.ts b/src/ig-template/IgtGame.ts index 72742fd..8448c41 100644 --- a/src/ig-template/IgtGame.ts +++ b/src/ig-template/IgtGame.ts @@ -156,6 +156,7 @@ export abstract class IgtGame { feature.start(); } + this._nextSave = this.SAVE_INTERVAL; this._lastUpdate = new Date().getTime() / 1000; this._tickInterval = setInterval(() => this.update(), this.TICK_DURATION * 1000);