Skip to content

Commit

Permalink
Update AutoFishCommand.java
Browse files Browse the repository at this point in the history
issue with reeling in
  • Loading branch information
quervyloll authored Oct 15, 2024
1 parent 376c44a commit ce38e6d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/client/java/com/quervylol/AutoFishCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,12 @@ private static void startAutoFishing() {
lastCastAutomated = true;
}

if (fishingTicks >= CAST_WAIT_TICKS && isFishBiting()) {
reelIn();
fishingTicks = 0;
postReelDelayTicks = REEL_DELAY_TICKS;
if (fishingTicks >= CAST_WAIT_TICKS) {
if (isFishBiting()) {
reelIn();
fishingTicks = 0;
postReelDelayTicks = REEL_DELAY_TICKS;
}
}
}
}
Expand Down Expand Up @@ -137,7 +139,9 @@ private static void castRod() {
private static boolean isFishBiting() {
if (client.player != null && client.player.fishHook != null) {
Vec3d velocity = client.player.fishHook.getVelocity();
return velocity.y < -0.05;
if (velocity.y < -0.05 && fishingTicks > CAST_WAIT_TICKS / 2) {
return true;
}
}
return false;
}
Expand Down

0 comments on commit ce38e6d

Please sign in to comment.