Fix "You are fishing" in fishing plugin

Replace equality check with contains check due to recent renaming of
some fishing spots from OSRS side.

Fixes: #755

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-03-02 13:11:03 +01:00
parent ff4066cd74
commit 62af296912

View File

@@ -78,7 +78,8 @@ class FishingOverlay extends Overlay
}
panelComponent.getLines().clear();
if (client.getLocalPlayer().getInteracting() != null && client.getLocalPlayer().getInteracting().getName().equals(FISHING_SPOT))
if (client.getLocalPlayer().getInteracting() != null && client.getLocalPlayer().getInteracting().getName()
.contains(FISHING_SPOT))
{
panelComponent.setTitle("You are fishing");
panelComponent.setTitleColor(Color.GREEN);