mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-24 17:21:43 +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) {
|
function setTickInterval(ticksPerSecond) {
|
||||||
var serv = this;
|
var serv = this;
|
||||||
stopTickInterval();
|
serv.stopTickInterval();
|
||||||
|
|
||||||
serv.tickInterval = setInterval(function() {
|
serv.tickInterval = setInterval(function() {
|
||||||
serv.tickCount++;
|
serv.tickCount++;
|
||||||
|
|
@ -20,6 +20,6 @@ function setTickInterval(ticksPerSecond) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function stopTickInterval() {
|
function stopTickInterval() {
|
||||||
if (serv.tickInterval) clearInterval(serv.tickInterval);
|
if (this.tickInterval) clearInterval(serv.tickInterval);
|
||||||
serv.tickInterval = null;
|
this.tickInterval = null;
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue