npcunaggroarea: Null check

This commit is contained in:
sdburns1998
2019-07-07 15:57:59 +02:00
parent 739b4dad06
commit ef256b40c7

View File

@@ -110,8 +110,11 @@ class NpcAggroAreaOverlay extends Overlay
path = Geometry.transformPath(path, coords ->
{
Point point = Perspective.localToCanvas(client, new LocalPoint((int) coords[0], (int) coords[1]), client.getPlane());
coords[0] = point.getX();
coords[1] = point.getY();
if (point != null)
{
coords[0] = point.getX();
coords[1] = point.getY();
}
});
graphics.draw(path);