Fixed a bug where the player would attack when looting a dead mob.