mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix mod reload of atch manipulations.
This commit is contained in:
parent
0aa8a44b8d
commit
ac2631384f
1 changed files with 18 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using System.Collections.Frozen;
|
||||
using OtterGui.Services;
|
||||
using Penumbra.Collections.Cache;
|
||||
using Penumbra.Meta;
|
||||
using Penumbra.Meta.Files;
|
||||
using Penumbra.Meta.Manipulations;
|
||||
|
|
@ -157,6 +158,23 @@ public class ModMetaEditor(
|
|||
}
|
||||
}
|
||||
|
||||
foreach (var (key, value) in clone.Atch)
|
||||
{
|
||||
var defaultEntry = AtchCache.GetDefault(metaFileManager, key);
|
||||
if (!defaultEntry.HasValue)
|
||||
continue;
|
||||
|
||||
if (!defaultEntry.Value.Equals(value))
|
||||
{
|
||||
dict.TryAdd(key, value);
|
||||
}
|
||||
else
|
||||
{
|
||||
Penumbra.Log.Verbose($"Deleted default-valued meta-entry {key}.");
|
||||
++count;
|
||||
}
|
||||
}
|
||||
|
||||
if (count == 0)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue