Skip to content

Commit

Permalink
Fix #29, add durability check for persist mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Wudji committed Nov 12, 2024
1 parent 026e800 commit fa11e9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/troy/autofish/Autofish.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public Autofish(FabricModAutofish modAutofish) {
//Initiate the repeating action for persistent mode casting
modAutofish.getScheduler().scheduleRepeatingAction(10000, () -> {
if(!modAutofish.getConfig().isPersistentMode()) return;
if(modAutofish.getConfig().isNoBreak() && getHeldItem().getDamage() >= 63) return;
if(!isHoldingFishingRod()) return;
if(hookExists){
if(isBobberInWater()) return;
Expand Down

0 comments on commit fa11e9f

Please sign in to comment.