From 7fd8e56d3eecd622b46dff539322b867f93ea24a Mon Sep 17 00:00:00 2001 From: DemiPixel Date: Fri, 9 Oct 2015 17:33:29 -0700 Subject: [PATCH] Of course it breaks --- src/lib/serverPlugins/tick.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/serverPlugins/tick.js b/src/lib/serverPlugins/tick.js index a6ea6d4..6d50fbb 100644 --- a/src/lib/serverPlugins/tick.js +++ b/src/lib/serverPlugins/tick.js @@ -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; } \ No newline at end of file