Skip to content

Commit e92d4f7

Browse files
committed
Further adjustment to deletion criteria.
1 parent abc1bff commit e92d4f7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

xivModdingFramework/Mods/RootCloner.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public static async Task CloneRoot(XivDependencyRoot Source, XivDependencyRoot D
164164
{
165165
if (mod.fullPath.StartsWith(dPath) && !mod.IsInternal())
166166
{
167-
if (Destination.Info.Slot == null)
167+
if (Destination.Info.SecondaryType != null || Destination.Info.Slot == null)
168168
{
169169
// If this is a slotless root, purge everything.
170170
await _modding.DeleteMod(mod.fullPath, false);
@@ -377,7 +377,11 @@ public static async Task CloneRoot(XivDependencyRoot Source, XivDependencyRoot D
377377
{
378378
if (allFiles.Contains(mod.fullPath))
379379
{
380-
mod.modPack = modPack;
380+
// Don't claim common path items into our modpack.
381+
if (!mod.fullPath.StartsWith(CommonPath))
382+
{
383+
mod.modPack = modPack;
384+
}
381385
}
382386
}
383387

0 commit comments

Comments
 (0)