Fix metadata bug.

This commit is contained in:
Ottermandias 2022-01-08 15:15:17 +01:00
parent c542c79923
commit 84fd0262c2
2 changed files with 6 additions and 3 deletions

View file

@ -101,7 +101,7 @@ namespace Penumbra.Interop
var handle = ( ResourceHandle* )oldResources[ i ];
if( oldResources[ i ].ToPointer() == pResources[ i ] )
{
PluginLog.Debug( $"Unchanged resource: {ResourceToPath( ( byte* )oldResources[ i ].ToPointer() )}" );
PluginLog.Verbose( $"Unchanged resource: {ResourceToPath( ( byte* )oldResources[ i ].ToPointer() )}" );
( ( ResourceHandle* )oldResources[ i ] )->DecRef();
continue;
}

View file

@ -43,10 +43,14 @@ public class CollectionManager
if( ActiveCollection.Cache?.MetaManipulations.Count > 0 || newActive.Cache?.MetaManipulations.Count > 0 )
{
var resourceManager = Service< ResidentResources >.Get();
ActiveCollection = newActive;
resourceManager.ReloadResidentResources();
}
else
{
ActiveCollection = newActive;
}
ActiveCollection = newActive;
return true;
}
@ -170,7 +174,6 @@ public class CollectionManager
collection.Delete();
Collections.Remove( name );
return true;
}
private void AddCache( ModCollection collection )