Fix collections wrongly becoming active on rediscover.

This commit is contained in:
Ottermandias 2022-06-05 14:49:12 +02:00
parent 82ac639854
commit 6dbf487c99

View file

@ -202,7 +202,7 @@ public partial class ModCollection
}
// Afterwards, we update the caches. This can not happen in the same loop due to inheritance.
foreach( var collection in this )
foreach( var collection in this.Where( c => c.HasCache ) )
{
collection.ForceCacheUpdate();
}