Merge pull request #888 from f0rmatme/groundmarkers
Removes max draw distance of ground markers
This commit is contained in:
@@ -45,7 +45,6 @@ import net.runelite.client.ui.overlay.OverlayUtil;
|
|||||||
@Singleton
|
@Singleton
|
||||||
class GroundMarkerMinimapOverlay extends Overlay
|
class GroundMarkerMinimapOverlay extends Overlay
|
||||||
{
|
{
|
||||||
private static final int MAX_DRAW_DISTANCE = 16;
|
|
||||||
private static final int TILE_WIDTH = 4;
|
private static final int TILE_WIDTH = 4;
|
||||||
private static final int TILE_HEIGHT = 4;
|
private static final int TILE_HEIGHT = 4;
|
||||||
|
|
||||||
@@ -103,12 +102,6 @@ class GroundMarkerMinimapOverlay extends Overlay
|
|||||||
|
|
||||||
private void drawOnMinimap(Graphics2D graphics, WorldPoint point, Color color)
|
private void drawOnMinimap(Graphics2D graphics, WorldPoint point, Color color)
|
||||||
{
|
{
|
||||||
WorldPoint playerLocation = client.getLocalPlayer().getWorldLocation();
|
|
||||||
|
|
||||||
if (point.distanceTo(playerLocation) >= MAX_DRAW_DISTANCE)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
LocalPoint lp = LocalPoint.fromWorld(client, point);
|
LocalPoint lp = LocalPoint.fromWorld(client, point);
|
||||||
if (lp == null)
|
if (lp == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user