Skip to content

Commit

Permalink
Reduce average iterations of rotation place
Browse files Browse the repository at this point in the history
  • Loading branch information
Axionize committed Sep 25, 2024
1 parent da1468e commit d592757
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ private boolean didRayTraceHit(BlockPlace place) {
SimpleCollisionBox box = new SimpleCollisionBox(place.getPlacedAgainstBlockLocation());

List<Vector3f> possibleLookDirs = new ArrayList<>(Arrays.asList(
new Vector3f(player.lastXRot, player.yRot, 0),
new Vector3f(player.xRot, player.yRot, 0)
new Vector3f(player.xRot, player.yRot, 0),
new Vector3f(player.lastXRot, player.yRot, 0)
));

// Start checking if player is in the block
Expand Down

0 comments on commit d592757

Please sign in to comment.