Added check to see whether we want player inventory or not