This commit is contained in:
Ottermandias 2022-04-14 22:02:05 +02:00
parent da73feacf4
commit f3b906007d
3 changed files with 96 additions and 89 deletions

View file

@ -38,7 +38,10 @@ public sealed partial class Mod2
{
if( unusedFile.ToGamePath( mod.BasePath, out var gamePath ) )
{
mod._default.FileData.Add( gamePath, unusedFile );
if( !mod._default.FileData.TryAdd( gamePath, unusedFile ) )
{
PluginLog.Error( $"Could not add {gamePath} because it already points to {mod._default.FileData[ gamePath ]}." );
}
}
}