Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 806081b

Browse files
committed
fix PingHUD
1 parent aabbeaf commit 806081b

File tree

1 file changed

+1
-3
lines changed
  • src/main/java/io/github/axolotlclient/modules/hud/gui/hud/simple

1 file changed

+1
-3
lines changed

src/main/java/io/github/axolotlclient/modules/hud/gui/hud/simple/PingHud.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import io.github.axolotlclient.AxolotlclientConfig.options.IntegerOption;
44
import io.github.axolotlclient.AxolotlclientConfig.options.Option;
5-
import io.github.axolotlclient.AxolotlclientConfig.options.OptionBase;
65
import io.github.axolotlclient.modules.hud.gui.entry.SimpleTextHudEntry;
76
import io.github.axolotlclient.util.ThreadExecuter;
87
import net.minecraft.client.MinecraftClient;
@@ -62,8 +61,7 @@ public boolean tickable() {
6261

6362
private void updatePing(){
6463
if (MinecraftClient.getInstance().getCurrentServerEntry() != null) {
65-
if (MinecraftClient.getInstance().getCurrentServerEntry().ping==1 ||
66-
MinecraftClient.getInstance().getCurrentServerEntry().ping == -1) {
64+
if (MinecraftClient.getInstance().getCurrentServerEntry().ping <= 1) {
6765
getRealTimeServerPing(MinecraftClient.getInstance().getCurrentServerEntry());
6866
} else {
6967
currentServerPing = (int) MinecraftClient.getInstance().getCurrentServerEntry().ping;

0 commit comments

Comments
 (0)