Expanded the items arrays to check not only internal inventory items but primary slot inventory items.