Skip to content

Commit

Permalink
fix(save): Update next save on start
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishadijcks committed Oct 7, 2021
1 parent 1d7e424 commit 933029f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ig-template/IgtGame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 933029f

Please # to comment.