Skip to content

Commit

Permalink
Read CHANGES.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RadonCoding committed Apr 3, 2024
1 parent 34773a8 commit cf1af57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public ActivationType getActivationType(LivingEntity owner) {

public static @Nullable HitResult getTarget(LivingEntity owner) {
HitResult hit = RotationUtil.getLookAtHit(owner, RANGE, target -> !target.isSpectator());
if (hit.getType() == HitResult.Type.MISS) return null;
//if (hit.getType() == HitResult.Type.MISS) return null;
if (hit.getType() == HitResult.Type.BLOCK && ((BlockHitResult) hit).getDirection() == Direction.DOWN) return null;
return hit;
}
Expand Down

0 comments on commit cf1af57

Please sign in to comment.