Fixed items being replaced when used not being handled properly in robots (e.g. buckets), closes #279.