The server saves the inventory before clearing it.