Skip to content

Commit

Permalink
increase length of hitdetection raycast
Browse files Browse the repository at this point in the history
  • Loading branch information
Steanky committed Jul 14, 2023
1 parent 3105d1b commit 3cb9322
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public boolean leftClick() {

Pos feetPos = player.getPosition();
Pos eyePos = feetPos.add(0, player.getEyeHeight(), 0);
Point targetPos = eyePos.add(feetPos.direction().mul(data.reach));
Point targetPos = eyePos.add(feetPos.direction().mul(data.reach + 5));

Wrapper<HitResult> closest = Wrapper.ofNull();
instance.getEntityTracker()
Expand Down

0 comments on commit 3cb9322

Please sign in to comment.