Fixed player inventory check

Should now check for appropriate player.