cannon plugin: check cannon location is in scene
This commit is contained in:
@@ -64,6 +64,11 @@ class CannonOverlay extends Overlay
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Perspective.isWorldInScene(client, plugin.myCannon))
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
net.runelite.api.Point cannonLoc = Perspective.getCanvasTextLocation(client,
|
net.runelite.api.Point cannonLoc = Perspective.getCanvasTextLocation(client,
|
||||||
graphics,
|
graphics,
|
||||||
Perspective.worldToLocal(client, plugin.myCannon),
|
Perspective.worldToLocal(client, plugin.myCannon),
|
||||||
|
|||||||
Reference in New Issue
Block a user