Gracefully deal with invalid offhand IMCs.

This commit is contained in:
Ottermandias 2024-07-14 20:38:54 +02:00
parent d6f61f06cb
commit e46fcc4af1
3 changed files with 4 additions and 3 deletions

@ -1 +1 @@
Subproject commit a64a30bf29cf297285ecde0579830b4d7fbae2d9
Subproject commit 2c067b4f3c1d84888c2b961a93fe2de01fffe5f1

View file

@ -100,7 +100,8 @@ public readonly record struct ImcIdentifier(
return false;
if (!Enum.IsDefined(ObjectType))
return false;
if (ItemData.AdaptOffhandImc(PrimaryId, out _))
return false;
break;
}

View file

@ -45,7 +45,7 @@ public class ValidityChecker : IService
public void LogExceptions()
{
if (ImcExceptions.Count > 0)
Penumbra.Messager.NotificationMessage($"{ImcExceptions} IMC Exceptions thrown during Penumbra load. Please repair your game files.",
Penumbra.Messager.NotificationMessage($"{ImcExceptions.Count} IMC Exceptions thrown during Penumbra load. Please repair your game files.",
NotificationType.Warning);
}