Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjabrain1 committed Jun 28, 2022
1 parent 3e9ba36 commit 52a5e02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ninjabrainbot/calculator/RayApproximatedPrior.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ private void construct(Ray r, double tolerance) {
boolean majorX = Math.cos(phi) * Math.cos(phi) < 0.5;
boolean majorPositive = majorX ? -Math.sin(phi) > 0 : Math.cos(phi) > 0;
// Subtract StrongholdChunkCoord to center grid at (8,8) (or 0,0 in 1.19).
double origin_major = (majorX ? r.x() : r.z() - StrongholdConstants.getStrongholdChunkCoord()) / 16.0;
double origin_minor = (majorX ? r.z() : r.x() - StrongholdConstants.getStrongholdChunkCoord()) / 16.0;
double origin_major = ((majorX ? r.x() : r.z()) - StrongholdConstants.getStrongholdChunkCoord()) / 16.0;
double origin_minor = ((majorX ? r.z() : r.x()) - StrongholdConstants.getStrongholdChunkCoord()) / 16.0;
double iter_start_major = getIterStartMajor(origin_major, origin_minor, ux, uz, vx, vz, majorX, majorPositive);
double uk = majorX ? uz / ux : ux / uz;
double vk = majorX ? vz / vx : vx / vz;
Expand Down

0 comments on commit 52a5e02

Please sign in to comment.