mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Gracefully deal with invalid offhand IMCs.
This commit is contained in:
parent
d6f61f06cb
commit
e46fcc4af1
3 changed files with 4 additions and 3 deletions
|
|
@ -1 +1 @@
|
||||||
Subproject commit a64a30bf29cf297285ecde0579830b4d7fbae2d9
|
Subproject commit 2c067b4f3c1d84888c2b961a93fe2de01fffe5f1
|
||||||
|
|
@ -100,7 +100,8 @@ public readonly record struct ImcIdentifier(
|
||||||
return false;
|
return false;
|
||||||
if (!Enum.IsDefined(ObjectType))
|
if (!Enum.IsDefined(ObjectType))
|
||||||
return false;
|
return false;
|
||||||
|
if (ItemData.AdaptOffhandImc(PrimaryId, out _))
|
||||||
|
return false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ public class ValidityChecker : IService
|
||||||
public void LogExceptions()
|
public void LogExceptions()
|
||||||
{
|
{
|
||||||
if (ImcExceptions.Count > 0)
|
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);
|
NotificationType.Warning);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue