aboutsummaryrefslogtreecommitdiff
path: root/features/hud
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-04-23 13:19:19 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-04-23 13:19:19 +0800
commitb4111d1e0895559f800e275fbbae98a86ac11e7d (patch)
treec08770b446717a3420d45fc716b76f4e703afb03 /features/hud
parent5595ba9f25365aad0c5aaa1b3641f0617d869834 (diff)
downloadSoopyV2-b4111d1e0895559f800e275fbbae98a86ac11e7d.tar.gz
SoopyV2-b4111d1e0895559f800e275fbbae98a86ac11e7d.tar.bz2
SoopyV2-b4111d1e0895559f800e275fbbae98a86ac11e7d.zip
+ dulkur thingo
+ DinkDonk for piller only happens when ur boss is spawned
Diffstat (limited to 'features/hud')
-rw-r--r--features/hud/index.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/features/hud/index.js b/features/hud/index.js
index 3a17830..a4b8eb2 100644
--- a/features/hud/index.js
+++ b/features/hud/index.js
@@ -275,7 +275,7 @@ class Hud extends Feature {
this.packetMoves = 0
this.secondPackets = 0
- this.tps = -1
+ this.tps = -2
this.lastTps = []
this.registerEvent("tick", this.tick)
this.registerStep(false, 1, this.step_1second)
@@ -289,6 +289,10 @@ class Hud extends Feature {
if (!this.lagEnabled.getValue()) return
this.lastTps.push(this.secondPackets)
if (this.lastTps.length > 10) this.lastTps.shift()
+ if (this.tps === -2) {
+ this.tps = -1
+ this.lastTps = []
+ }
this.tps = this.lastTps.reduce((a, b) => a + b, 0) / this.lastTps.length
this.secondPackets = 0
@@ -665,7 +669,7 @@ class Hud extends Feature {
this.lastUpdatedStatData = 0
this.packetMoves = 0
this.secondPackets = 0
- this.tps = -1
+ this.tps = -2
this.lastTps = []
this.lagElement.setText("&6Tps&7> &fLOADING")
}