Update the pack hash when adding/importing mods

This commit is contained in:
comp500
2019-06-14 18:12:14 +01:00
parent 8eeb509565
commit e7ed7d8d11
3 changed files with 19 additions and 2 deletions

View File

@@ -244,6 +244,7 @@ func (in *Index) RefreshFile(path string) error {
// Write saves the index file
func (in Index) Write() error {
// TODO: calculate and provide hash while writing?
f, err := os.Create(in.indexFile)
if err != nil {
return err