Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import meteordevelopment.meteorclient.utils.entity.EntityUtils;
import meteordevelopment.orbit.EventHandler;
import net.minecraft.network.protocol.game.ServerboundAttackPacket;
import net.minecraft.network.protocol.game.ServerboundInteractPacket;
import net.minecraft.network.protocol.game.ServerboundMovePlayerPacket;
import net.minecraft.network.protocol.game.ServerboundSwingPacket;
import net.minecraft.world.entity.Entity;
Expand Down Expand Up @@ -61,7 +60,7 @@ public class Criticals extends Module {
.build()
);

private ServerboundInteractPacket attackPacket;
private ServerboundAttackPacket attackPacket;
private ServerboundSwingPacket swingPacket;
private boolean sendPackets;
private int sendTimer;
Expand Down Expand Up @@ -116,10 +115,10 @@ private void onSendPacket(PacketEvent.Send event) {
case Jump, MiniJump -> {
if (!sendPackets) {
sendPackets = true;
attackPacket = (ServerboundInteractPacket) event.packet;
attackPacket = (ServerboundAttackPacket) event.packet;

if (mode.get() == Mode.Jump) {
mc.player.isJumping();
mc.player.jumpFromGround();
waitingForPeak = true;
lastY = mc.player.getY();
} else {
Expand Down