Fix data not being added when using players.name.inventory.give_item

This fixes issue #310