fishing: Set status to NOT fishing when the flying fish is active

Since you are not getting fish while the flying fish is active, you are not
actually fishing any minnows.

Closes #8584
This commit is contained in:
dekvall
2019-08-26 01:31:13 +02:00
parent 6547478c07
commit e9a805c735

View File

@@ -29,6 +29,7 @@ import java.awt.Dimension;
import java.awt.Graphics2D;
import javax.inject.Inject;
import net.runelite.api.Client;
import net.runelite.api.GraphicID;
import static net.runelite.api.MenuAction.RUNELITE_OVERLAY_CONFIG;
import net.runelite.api.Skill;
import net.runelite.client.plugins.xptracker.XpTrackerService;
@@ -72,8 +73,9 @@ class FishingOverlay extends Overlay
}
panelComponent.getChildren().clear();
if (client.getLocalPlayer().getInteracting() != null && client.getLocalPlayer().getInteracting().getName()
.contains(FISHING_SPOT))
if (client.getLocalPlayer().getInteracting() != null
&& client.getLocalPlayer().getInteracting().getName().contains(FISHING_SPOT)
&& client.getLocalPlayer().getInteracting().getGraphic() != GraphicID.FLYING_FISH)
{
panelComponent.getChildren().add(TitleComponent.builder()
.text("Fishing")