Skip to content

Commit

Permalink
Added rotations to Nuker and improved block breaking on strict servers.
Browse files Browse the repository at this point in the history
  • Loading branch information
supakeks authored and Wide-Cat committed Sep 6, 2023
1 parent 40dbfbd commit 14dd21b
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 135 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public void mine(boolean done) {
InvUtils.swap(pick.slot(), switchMode.get() == SwitchMode.Silent);
if (rotate.get()) Rotations.rotate(Rotations.getYaw(targetPos), Rotations.getPitch(targetPos));

Direction direction = (mc.player.getY() > targetPos.getY()) ? Direction.UP : Direction.DOWN;
Direction direction = BlockUtils.getDirection(targetPos);
if (!done) mc.getNetworkHandler().sendPacket(new PlayerActionC2SPacket(PlayerActionC2SPacket.Action.START_DESTROY_BLOCK, targetPos, direction));
mc.getNetworkHandler().sendPacket(new PlayerActionC2SPacket(PlayerActionC2SPacket.Action.STOP_DESTROY_BLOCK, targetPos, direction));

Expand Down
Loading

0 comments on commit 14dd21b

Please sign in to comment.