Fixed dyeing equipped item issue.

See comment for more information.