diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-12 19:12:24 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-12 19:12:24 +0800 |
commit | 8522734379fc57d0f22accbbe70ea8d903b4b1df (patch) | |
tree | dc2bbc5d813c1e532ac6be7a88083acc1ff202d0 /features/slayers | |
parent | 2789848b1518ff3e4805bc1d32241ebb34a31ddb (diff) | |
parent | 35b89852096c48945e55e9d550a417a963a9ad74 (diff) | |
download | SoopyV2-8522734379fc57d0f22accbbe70ea8d903b4b1df.tar.gz SoopyV2-8522734379fc57d0f22accbbe70ea8d903b4b1df.tar.bz2 SoopyV2-8522734379fc57d0f22accbbe70ea8d903b4b1df.zip |
Merge branch 'master' of https://github.com/Soopyboo32/SoopyV2 into Senither-lb
Diffstat (limited to 'features/slayers')
-rw-r--r-- | features/slayers/index.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js index 347cfaa..5b6e5ac 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -2,7 +2,7 @@ /// <reference lib="es2015" /> import Feature from "../../featureClass/class"; import { f, m } from "../../../mappings/mappings"; -import { numberWithCommas } from "../../utils/numberUtils"; +import { numberWithCommas, timeNumber } from "../../utils/numberUtils"; import { drawBoxAtBlock, drawBoxAtEntity, drawFilledBox, drawLine } from "../../utils/renderUtils"; import HudTextElement from "../hud/HudTextElement"; import LocationSetting from "../settings/settingThings/location"; @@ -380,11 +380,3 @@ class Slayers extends Feature { module.exports = { class: new Slayers() } - -function timeNumber(time){ - let mins = Math.floor(time/1000/60) - let secs = Math.floor(time/1000)%60 - - if(mins === 0) return secs + "s" - return `${mins}m ${secs}s` -}
\ No newline at end of file |