Skip to content

Commit

Permalink
Gracefully deal with invalid offhand IMCs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottermandias committed Jul 14, 2024
1 parent d6f61f0 commit e46fcc4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Penumbra/Meta/Manipulations/Imc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ public bool Validate()
return false;
if (!Enum.IsDefined(ObjectType))
return false;

if (ItemData.AdaptOffhandImc(PrimaryId, out _))
return false;
break;
}

Expand Down
2 changes: 1 addition & 1 deletion Penumbra/Services/ValidityChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public ValidityChecker(IDalamudPluginInterface pi)
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);
}

Expand Down

0 comments on commit e46fcc4

Please sign in to comment.