mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-14 03:51:07 +00:00
Of course it breaks
This commit is contained in:
parent
7a028e7193
commit
7fd8e56d3e
1 changed files with 3 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ function inject(serv, settings) {
|
|||
|
||||
function setTickInterval(ticksPerSecond) {
|
||||
var serv = this;
|
||||
stopTickInterval();
|
||||
serv.stopTickInterval();
|
||||
|
||||
serv.tickInterval = setInterval(function() {
|
||||
serv.tickCount++;
|
||||
|
|
@ -20,6 +20,6 @@ function setTickInterval(ticksPerSecond) {
|
|||
}
|
||||
|
||||
function stopTickInterval() {
|
||||
if (serv.tickInterval) clearInterval(serv.tickInterval);
|
||||
serv.tickInterval = null;
|
||||
if (this.tickInterval) clearInterval(serv.tickInterval);
|
||||
this.tickInterval = null;
|
||||
}
|
||||
Loading…
Reference in a new issue