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

@@ -258,6 +258,14 @@ func cmdInstall(flags core.Flags, mod string, modArgsTail []string) error {
if err != nil {
return cli.NewExitError(err, 1)
}
err = pack.UpdateIndexHash()
if err != nil {
return cli.NewExitError(err, 1)
}
err = pack.Write()
if err != nil {
return cli.NewExitError(err, 1)
}
fmt.Printf("Mod \"%s\" successfully installed!\n", modInfoData.Name)