mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-31 21:03:48 +01:00
Fix meta change counting and reloading on manual meta change edits.
This commit is contained in:
parent
bf355114f2
commit
1eee89ab4c
5 changed files with 23 additions and 13 deletions
|
|
@ -29,7 +29,7 @@ namespace Penumbra.Mod
|
|||
MetaManipulations.SaveToFile( MetaCollection.FileName( basePath ) );
|
||||
}
|
||||
|
||||
public void SetManipulations( ModMeta meta, DirectoryInfo basePath )
|
||||
public void SetManipulations( ModMeta meta, DirectoryInfo basePath, bool validate = true )
|
||||
{
|
||||
var newManipulations = MetaCollection.LoadFromFile( MetaCollection.FileName( basePath ) );
|
||||
if( newManipulations == null )
|
||||
|
|
@ -39,7 +39,7 @@ namespace Penumbra.Mod
|
|||
else
|
||||
{
|
||||
MetaManipulations = newManipulations;
|
||||
if( !MetaManipulations.Validate( meta ) )
|
||||
if( validate && !MetaManipulations.Validate( meta ) )
|
||||
{
|
||||
ForceManipulationsUpdate( meta, basePath );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue