mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
remove unused
This commit is contained in:
parent
0310622870
commit
8cb60ec77e
1 changed files with 0 additions and 2 deletions
|
@ -17,7 +17,6 @@ function inject (bot, dcclient, config) {
|
||||||
let nextIndex = 0
|
let nextIndex = 0
|
||||||
let timeLastTimeUpdate = -1
|
let timeLastTimeUpdate = -1
|
||||||
let timeGameJoined
|
let timeGameJoined
|
||||||
let timeUpdatesTotal = 0
|
|
||||||
|
|
||||||
const interval = setInterval(() => {
|
const interval = setInterval(() => {
|
||||||
if (!enabled) return
|
if (!enabled) return
|
||||||
|
@ -68,7 +67,6 @@ function inject (bot, dcclient, config) {
|
||||||
tickRates[nextIndex] = clamp(20.0 / timeElapsed, 0.0, 20.0)
|
tickRates[nextIndex] = clamp(20.0 / timeElapsed, 0.0, 20.0)
|
||||||
nextIndex = (nextIndex + 1) % tickRates.length
|
nextIndex = (nextIndex + 1) % tickRates.length
|
||||||
timeLastTimeUpdate = now
|
timeLastTimeUpdate = now
|
||||||
timeUpdatesTotal++
|
|
||||||
})
|
})
|
||||||
|
|
||||||
bot.on('end', () => clearInterval(interval))
|
bot.on('end', () => clearInterval(interval))
|
||||||
|
|
Loading…
Reference in a new issue