Skip to content

Commit

Permalink
thats suppost to be a thread
Browse files Browse the repository at this point in the history
  • Loading branch information
Nxyi committed Aug 6, 2024
1 parent b5bdb0d commit d424471
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/com/dark/zewo2/modules/Fling.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,24 +54,24 @@ public void onPacket(PacketEvent.Send event){

int packetsRequired = (int) Math.ceil(Math.abs(distance / 10));

CompletableFuture.runAsync(() -> {
new Thread(() -> {
buildTpRange(packetsRequired);

Vec3d pos = mc.player.getPos();
moveTo(pos.add(0, distance,0));
moveTo(pos.add(0, distance, 0));

JinxUtils.sleep(250);

toggle(); // i cannot be bothered to find if meteor has an eventLess packet util.
mc.player.networkHandler.sendPacket(new PlayerInteractItemC2SPacket(Hand.MAIN_HAND,0,0,0));
mc.player.networkHandler.sendPacket(new PlayerInteractItemC2SPacket(Hand.MAIN_HAND, 0, 0, 0));
toggle();

JinxUtils.sleep(250);

buildTpRange(packetsRequired); // "minecraft resets your movement charge like every tick"
mc.player.setVelocity(Vec3d.ZERO);
moveTo(pos.add(0, 0.01,0));
});
moveTo(pos.add(0, 0.01, 0));
}).start();

}
}
Expand Down

0 comments on commit d424471

Please sign in to comment.