Skip to content

Commit

Permalink
Merge pull request #13 from 123ishaTest/fix/save_interval
Browse files Browse the repository at this point in the history
fix(save): Update next save on start
  • Loading branch information
Ishadijcks authored Oct 7, 2021
2 parents b164dd1 + 933029f commit 8e1b2c6
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 8e1b2c6

Please # to comment.