@Override
    public void render(Graphics2D g, LevelEditorComponent ed)
    {
        g.drawImage(Resources.get("pathpoint"), X + NSMBPath.XOffs, Y + NSMBPath.YOffs, null);

        boolean lol = true;
        int num = parent.points.indexOf(this);
        if (num == 0)
            g.setColor(Color.GREEN);
        if (num == parent.points.size() - 1)
            g.setColor(Color.RED);
        else
            lol = false;

        if (lol)
        {
            g.drawRect(X, Y, 16, 16);
            g.drawRect(X + 1, Y + 1, 14, 14);
        }

        g.setColor(Color.WHITE);
        g.drawString(num + "", X, Y);
    }