beforeSave

open fun beforeSave(pack: ResourcePack)

Called before saving, but after copying assets to make sure there are no errors.