Make collection resolver not cache early resolved actors that aren't characters.

This commit is contained in:
Ottermandias 2024-08-12 20:58:17 +02:00
parent bb9dd184a3
commit bedf5dab79

View file

@ -216,10 +216,13 @@ public sealed unsafe class CollectionResolver(
private ModCollection? CollectionByAttributes(Actor actor, ref bool notYetReady)
{
if (!actor.IsCharacter)
{
Penumbra.Log.Excessive($"Actor to be identified was not yet a Character.");
notYetReady = true;
return null;
}
// Only handle human models.
if (!IsModelHuman((uint)actor.AsCharacter->CharacterData.ModelCharaId))
return null;