aboutsummaryrefslogtreecommitdiff
path: root/features/hud/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-07-26 20:27:59 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-07-26 20:27:59 +0800
commitb6063423547b4af9a11bbc78595e40073b52d5b7 (patch)
treebd2616f3e7eb4e258cdd6165367c95b3fb2be48d /features/hud/index.js
parentfff43a42e4ddfd38ff863c509b50e16e79b25162 (diff)
downloadSoopyV2-b6063423547b4af9a11bbc78595e40073b52d5b7.tar.gz
SoopyV2-b6063423547b4af9a11bbc78595e40073b52d5b7.tar.bz2
SoopyV2-b6063423547b4af9a11bbc78595e40073b52d5b7.zip
remove ping display as it was somehow causing ping spikes
Diffstat (limited to 'features/hud/index.js')
-rw-r--r--features/hud/index.js47
1 files changed, 0 insertions, 47 deletions
diff --git a/features/hud/index.js b/features/hud/index.js
index bb8d613..3980dff 100644
--- a/features/hud/index.js
+++ b/features/hud/index.js
@@ -150,15 +150,6 @@ class Hud extends Feature {
this.showLobbyDayOnlyUnder30 = new ToggleSetting("Show Current Lobby Day ONLY WHEN under day 30", "", true, "lobby_day_30", this)
this.hudElements.push(this.lobbyDayElement)
- this.showPing = new ToggleSetting("Show Current Ping", "(Updates every 30s)", true, "show_ping", this)
- this.pingElement = new HudTextElement()
- .setText("&6Ping&7> &fLoading...")
- .setToggleSetting(this.showPing)
- .setLocationSetting(new LocationSetting("Ping Location", "Allows you to edit the location of the ping text", "show_ping_location", this, [10, 100, 1, 1])
- .requires(this.showPing)
- .editTempText("&6Ping&7> &c312ms"))
- this.hudElements.push(this.pingElement)
-
let hudStatTypes = {
"cata": "Catacombs level + Exp",
"totaldeaths": "Total deaths"
@@ -270,44 +261,6 @@ class Hud extends Feature {
this.registerEvent("renderWorld", this.renderWorld).registeredWhen(() => this.fpsEnabledSetting.getValue() && this.fpsFastSetting.getValue())
this.registerEvent("worldLoad", this.worldLoad)
- this.registerStep(false, 30, () => {
- if (this.showPing.getValue() && Client.getMinecraft().func_147104_D()) {
- let pingNum = Client.getMinecraft().func_147104_D().field_78844_e
-
- let pingT = "&a" + pingNum + "ms"
- if (pingNum > 150) {
- pingT = "&e" + pingNum + "ms"
- }
- if (pingNum > 250) {
- pingT = "&c" + pingNum + "ms"
- }
-
- if (pingNum === -1) {
- pingT = "Loading..."
- }
- this.pingElement.setText("&6Ping&7> " + pingT)
-
- serverPinger[m.ping](Client.getMinecraft().func_147104_D());
- }
- })
- this.registerStep(false, 5, () => {
- if (this.showPing.getValue() && Client.getMinecraft().func_147104_D()) {
- let pingNum = Client.getMinecraft().func_147104_D().field_78844_e
-
- let pingT = "&a" + pingNum + "ms"
- if (pingNum > 150) {
- pingT = "&e" + pingNum + "ms"
- }
- if (pingNum > 250) {
- pingT = "&c" + pingNum + "ms"
- }
-
- if (pingNum === -1) {
- return;
- }
- this.pingElement.setText("&6Ping&7> " + pingT)
- }
- })
this.petLevels = {}
this.petText = "&6Pet&7> &fLoading..."