Contain legacy catalog readbacks

This commit is contained in:
Meta Vens 2026-06-13 05:42:50 +01:00
commit edd3c0467c
2 changed files with 9 additions and 3 deletions

View file

@ -122,11 +122,15 @@ public class CultCache
}
if(_typeStores.ContainsKey(type))
_typeStores[type].Push(entry);
{
var typeStore = _typeStores[type];
if(typeStore != source)
typeStore.Push(entry);
}
else
{
var masterStore = _backingStores.First();
if(masterStore!=source)
var masterStore = _backingStores.FirstOrDefault();
if(masterStore != null && masterStore!=source)
masterStore.Push(entry);
}