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:
@@ -78,7 +78,8 @@ class FishingOverlay extends Overlay
|
|||||||
}
|
}
|
||||||
|
|
||||||
panelComponent.getLines().clear();
|
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.setTitle("You are fishing");
|
||||||
panelComponent.setTitleColor(Color.GREEN);
|
panelComponent.setTitleColor(Color.GREEN);
|
||||||
|
|||||||
Reference in New Issue
Block a user