Fix log spam on nonexistent models.

This commit is contained in:
Ottermandias 2023-10-31 11:29:42 +01:00
parent 66cb6ffaad
commit b7cd6dfe2d

View file

@ -98,7 +98,7 @@ public unsafe class FunModule : IDisposable
if (_config.DisableFestivals == 0 && _festivalSet != null if (_config.DisableFestivals == 0 && _festivalSet != null
|| _codes.EnabledWorld && actor.Index != 0) || _codes.EnabledWorld && actor.Index != 0)
{ {
armor = actor.Model.GetArmor(slot); armor = actor.Model.Valid ? actor.Model.GetArmor(slot) : actor.GetArmor(slot);
} }
else else
{ {