Skip to content

Commit

Permalink
Hopefully fix instant rebreak kicking you
Browse files Browse the repository at this point in the history
  • Loading branch information
Wide-Cat committed Aug 6, 2024
1 parent e32839a commit 7f74c25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private void onTick(TickEvent.Pre event) {
}

public void sendPacket() {
mc.getNetworkHandler().sendPacket(new PlayerActionC2SPacket(PlayerActionC2SPacket.Action.STOP_DESTROY_BLOCK, blockPos, direction));
mc.getNetworkHandler().sendPacket(new PlayerActionC2SPacket(PlayerActionC2SPacket.Action.STOP_DESTROY_BLOCK, blockPos, direction == null ? Direction.UP : direction));
}

public boolean shouldMine() {
Expand Down

0 comments on commit 7f74c25

Please sign in to comment.