Add null-check for target tile in GroundMarkersPlugin (#7112)
Sometimes there is no target tile (e.g for climb-down ladders).
This commit is contained in:
@@ -286,6 +286,10 @@ public class GroundMarkerPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
Tile target = client.getSelectedSceneTile();
|
Tile target = client.getSelectedSceneTile();
|
||||||
|
if (target == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
markTile(target.getLocalLocation());
|
markTile(target.getLocalLocation());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user