mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix bug with deleting mods
This commit is contained in:
parent
31338e43d6
commit
2402d0aa6f
1 changed files with 2 additions and 2 deletions
|
|
@ -116,9 +116,9 @@ public sealed class ModManager : ModStorage
|
||||||
}
|
}
|
||||||
|
|
||||||
_communicator.ModPathChanged.Invoke(ModPathChangeType.Deleted, mod, mod.ModPath, null);
|
_communicator.ModPathChanged.Invoke(ModPathChangeType.Deleted, mod, mod.ModPath, null);
|
||||||
Mods.RemoveAt(mod.Index);
|
foreach (var remainingMod in Mods.Skip(mod.Index))
|
||||||
foreach (var remainingMod in this.Skip(mod.Index))
|
|
||||||
--remainingMod.Index;
|
--remainingMod.Index;
|
||||||
|
Mods.RemoveAt(mod.Index);
|
||||||
|
|
||||||
Penumbra.Log.Debug($"Deleted mod {mod.Name}.");
|
Penumbra.Log.Debug($"Deleted mod {mod.Name}.");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue