Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvdberge committed Mar 27, 2020
1 parent a55d2a7 commit 672900f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public ActionResultType onBlockActivated(BlockState state, World world, BlockPos

@Nullable
private Direction getAttachmentDirectionClicked(BlockPos pos, Vec3d hit) {
// We need to grow by 0.01 to make the contains() check inclusive instead of exclusive on the higher bound
if (NORTH_ATTACHMENT_SHAPE.getBoundingBox().grow(0.01).offset(pos).contains(hit)) {
return Direction.NORTH;
}
Expand Down

0 comments on commit 672900f

Please sign in to comment.