Skip to content

Commit

Permalink
change comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ManInMyVan authored Feb 24, 2024
1 parent 03424ae commit 9f2262e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public void onPacketReceive(PacketReceiveEvent event) {
return;
}

// on 1.8 and above clients always send digging packets that aren't used for digging at 0, 0, 0, facing DOWN
// on 1.7 and below clients do the same, except use SOUTH for RELEASE_USE_ITEM
// 1.8 and above clients always send digging packets that aren't used for digging at 0, 0, 0, facing DOWN
// 1.7 and below clients do the same, except use SOUTH for RELEASE_USE_ITEM
final BlockFace expectedFace = player.getClientVersion().isOlderThanOrEquals(ClientVersion.V_1_7_10) && packet.getAction() == DiggingAction.RELEASE_USE_ITEM
? BlockFace.SOUTH : BlockFace.DOWN;

Expand Down

0 comments on commit 9f2262e

Please sign in to comment.