groundmarkers: Fix NPE in drawTile
This commit is contained in:
@@ -83,8 +83,13 @@ public class GroundMarkerOverlay extends Overlay
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Polygon poly = Perspective.getCanvasTilePoly(client, LocalPoint.fromWorld(client, point));
|
LocalPoint lp = LocalPoint.fromWorld(client, point);
|
||||||
|
if (lp == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Polygon poly = Perspective.getCanvasTilePoly(client, lp);
|
||||||
if (poly == null)
|
if (poly == null)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user