Skip to content

Commit 0a57fcc

Browse files
committed
Ready for Next Release
1 parent 927cd47 commit 0a57fcc

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

src/main/java/adris/altoclef/AltoClef.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,11 +729,11 @@ public void onKeypress(int key, int action) {
729729
if (key == GLFW.GLFW_KEY_INSERT) mc.setScreenAndRender(ClickGUI.INSTANCE);
730730
}
731731
if (action == GLFW.GLFW_PRESS) {
732-
if (key == GLFW.GLFW_KEY_DELETE) {
732+
/* if (key == GLFW.GLFW_KEY_DELETE) {
733733
//check if click gui window is open if so ignore
734734
ClickGuiWindow window = new ClickGuiWindow();
735735
if (!window.isOpen()) window.open();
736-
}
736+
}*/
737737
}
738738
}
739739

src/main/java/adris/altoclef/ClientInit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public void onInitializeClient() {
2323
// Schedule Swing on EDT
2424
SwingUtilities.invokeLater(() -> {
2525
ClickGuiWindow window = new ClickGuiWindow();
26-
window.open();
26+
//window.open();
2727
});
2828
} catch (Exception e) {
2929
e.printStackTrace();

src/main/java/adris/altoclef/altomenu/modules/Development/Debugger.java

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import adris.altoclef.altomenu.cheatUtils.CChatUtil;
55
import adris.altoclef.altomenu.settings.BooleanSetting;
66
import adris.altoclef.eventbus.EventHandler;
7+
import adris.altoclef.eventbus.events.PacketEvent;
78

89

910
//todo:
@@ -28,12 +29,15 @@ public class Debugger extends Mod {
2829

2930
public Debugger() {
3031
super("Debugger (BETA)", "Funne", Mod.Category.DEVELOPMENT);
32+
PacketEvent.addGlobalListener(this::onPacket);
3133
}
3234

3335

3436
BooleanSetting ground = new BooleanSetting("Ground", false);
3537
BooleanSetting moved = new BooleanSetting("Moved", false);
3638
BooleanSetting tick = new BooleanSetting("Tick", false);
39+
BooleanSetting packetLog = new BooleanSetting("Packet Logger", true); // New toggle
40+
3741

3842
// BooleanSetting crosshair = new BooleanSetting("Crosshair Debug", false);
3943

@@ -64,9 +68,20 @@ public void onMove() { //This Method needs to be rewritten as it is essentially
6468
}
6569

6670
//This can easily cause lag if called too often
67-
// Will Be Better if we made it just flash a box on the screen
71+
// Will Be Better if we made it just flash a box on the screen with a counter
6872
@Override
6973
public void onRender() {
7074
//CChatUtil.addChatMessage(" Frame Rendered");
7175
}
76+
77+
// Packet logging
78+
private void onPacket(PacketEvent evt) {
79+
if (!packetLog.isEnabled() || !Debugger.super.isEnabled()) return;
80+
81+
String direction = (evt.direction == PacketEvent.Direction.SEND) ? "OUTGOING" : "INCOMING";
82+
String packetName = evt.packet.getClass().getSimpleName();
83+
84+
// Print packet info to chat
85+
CChatUtil.addChatMessage("[" + direction + "] " + packetName);
86+
}
7287
}

src/main/java/adris/altoclef/altomenu/modules/Player/AntiHunger.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public AntiHunger() {
1515
PacketEvent.addGlobalListener(this::onPacket);
1616
}
1717

18-
BooleanSetting spoofValue = new BooleanSetting("SpoofValue", true);
19-
BooleanSetting packetSpoof = new BooleanSetting("Packet", true);
18+
BooleanSetting spoofValue = new BooleanSetting("SpoofValue", false);
19+
BooleanSetting packetSpoof = new BooleanSetting("Silent Sprint", true);
2020

2121
@EventHandler
2222
public boolean onShitTick() {

0 commit comments

Comments
 (0)