Skip to content

Commit

Permalink
F
Browse files Browse the repository at this point in the history
  • Loading branch information
Aspw-w committed May 3, 2024
1 parent 5afe4f5 commit 32a1db4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ class Disabler : Module() {
PacketUtils.sendPacketNoEvent(
C04PacketPlayerPosition(
mc.thePlayer.posX,
mc.thePlayer.posY - 2.854394682,
mc.thePlayer.posY + 11.725,
mc.thePlayer.posZ,
false
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public abstract class MixinGuiConnecting extends GuiScreen {

@Inject(method = "connect", at = @At("HEAD"))
private void headConnect(final String ip, final int port, CallbackInfo callbackInfo) {
ServerUtils.serverData = new ServerData("", ip + ":" + port, false);
ServerUtils.serverData = new ServerData("", ip + ":" + port, true);
}

/**
Expand Down
15 changes: 0 additions & 15 deletions src/main/java/net/aspw/client/utils/ServerUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@ public static void connectToLastServer() {
mc.displayGuiScreen(new GuiConnecting(new GuiMultiplayer(new GuiMainMenu()), mc, serverData));
}

public static String getRemoteIp() {
if (mc.theWorld == null) return "Undefined";

String serverIp = "Singleplayer";

if (mc.theWorld.isRemote) {
final ServerData serverData = mc.getCurrentServerData();
if (serverData != null)
serverIp = serverData.serverIP;
}

return serverIp;
}

public static boolean isHypixelLobby() {
if (mc.theWorld == null) return false;

Expand All @@ -47,5 +33,4 @@ public static boolean isHypixelLobby() {
}
return false;
}

}

0 comments on commit 32a1db4

Please sign in to comment.