Skip to content

Commit

Permalink
An actual release, finally
Browse files Browse the repository at this point in the history
Changes:
 Everything since 2.4.0, which is a lot

In addition:

Pests Destroyer on the track:
 = Fixed fov checking
  • Loading branch information
May2Beez committed Mar 17, 2024
1 parent 7966721 commit 69c27a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ baseGroup=com.jelly.farmhelperv2
mcVersion=1.8.9
modid=farmhelperv2
modName=FarmHelper
version=2.5.0-pre10
version=2.5.0
shouldRelease=true
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ private Optional<Entity> getPest(boolean start) {
double zDiff = entityPosition.zCoord - playerPosition.zCoord;

float yaw = (float) Math.toDegrees(Math.atan2(zDiff, xDiff)) - 90F;
return dist <= vacuumRange - 0.5 && yaw < FarmHelperConfig.pestsDestroyerOnTheTrackFOV / 2f;
float yawDiff = Math.abs(mc.thePlayer.rotationYaw - yaw);
return dist <= vacuumRange - 0.5 && yawDiff < FarmHelperConfig.pestsDestroyerOnTheTrackFOV / 2f;
}
return dist <= vacuumRange - 0.5;
}).min((e1, e2) -> {
Expand Down

0 comments on commit 69c27a2

Please sign in to comment.