Resource saving function for resource packs.