public function saveMods(): void
    {
        $mods = [];
        foreach ($this->mods as $mod) {
            $mods[] = $mod->writeData();
        }
        $this->saveContent(self::HASH_FILE_MODS, $this->encodeContent($mods));
    }