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

Commit 13e29c0

Browse files
committed
fix some bugs
1 parent ef6b078 commit 13e29c0

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

1.20/src/main/java/io/github/axolotlclient/bridge/mixin/PlatformDispatchMixin.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public boolean isConnected() {
9393
return clientConnection.isOpen();
9494
}
9595
};
96+
clientConnection.setPacketListener(listener);
9697
clientConnection.send(new HandshakeC2SPacket(address.getAddress(), address.getPort(),
9798
NetworkState.STATUS));
9899
clientConnection.send(new MetadataQueryC2SPacket());

1.20/src/main/java/io/github/axolotlclient/modules/hud/gui/hud/PlayerHud.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ public void tick() {
7777
float pitch = k * (-90.0F - client.player.getPitch()) + 90;
7878
float height = client.player.getHeight();
7979
// sin = opposite / hypotenuse
80-
float offset = (float) (Math.sin(Math.toRadians(pitch)) * height) * 50;
81-
yOffset = 35 - offset;
80+
yOffset = (float) (Math.sin(Math.toRadians(pitch)) * height);
8281
if (pitch < 0) {
8382
yOffset -= (float) (((1 / (1 + Math.exp(-pitch / 4))) - .5) * 20);
8483
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import io.github.axolotlclient.bridge.PlatformDispatch;
3030
import io.github.axolotlclient.bridge.util.AxoIdentifier;
3131
import io.github.axolotlclient.modules.hud.gui.entry.SimpleTextHudEntry;
32+
import io.github.axolotlclient.util.ThreadExecuter;
3233
import org.apache.commons.lang3.mutable.MutableInt;
3334

3435
/**
@@ -63,8 +64,8 @@ public boolean tickable() {
6364
@Override
6465
public void tick() {
6566
if (second >= refreshDelay.get() * 20) {
66-
PlatformDispatch.pingHud$updatePing(currentServerPing);
6767
second = 0;
68+
ThreadExecuter.scheduleTask(() -> PlatformDispatch.pingHud$updatePing(currentServerPing));
6869
} else {
6970
second++;
7071
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fabric.loom.disableMinecraftVerification=true
77
axolotlclient.modules.all=true
88

99
# Mod Properties
10-
version=3.1.6-alpha.7
10+
version=3.1.6-alpha.8
1111

1212
maven_group=io.github.axolotlclient
1313

0 commit comments

Comments
 (0)