Skip to content

Commit

Permalink
Another Failsafe Update (the same one from pre-release)
Browse files Browse the repository at this point in the history
Failsafes:
= Dirt, Rotation and Teleport - It won't cancel the failsafe reactions anymore if multiple checks were triggered and one of these checks was canceled at the same time

Pests Destroyer:
= Fixed rare crash occurrence while flying
  • Loading branch information
onixiya1337 committed May 23, 2024
1 parent d1704ef commit 1f67253
Show file tree
Hide file tree
Showing 2 changed files with 2 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.7.1-pre1
version=2.7.1
shouldRelease=true
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ else if (this.neededYaw != Integer.MIN_VALUE) {
target = new Target(this.target).additionalY(this.yModifier);
}

if (!this.dontRotate && target.getTarget().isPresent()) {
if (!this.dontRotate && target.getTarget().isPresent() && !path.isEmpty()) {
Vec3 lastElement = path.get(Math.max(0, path.size() - 1));
Rotation rot = RotationHandler.getInstance().getRotation(target.getTarget().get());
if (mc.thePlayer.getPositionVector().distanceTo(lastElement) > 2 && target.getTarget().isPresent() && RotationHandler.getInstance().shouldRotate(rot, 3)) {
Expand Down

0 comments on commit 1f67253

Please sign in to comment.