mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
Convert Unknown Equipslots to Head for DemiHuman IMC.
This commit is contained in:
parent
8bca3d82f5
commit
3e26972a15
2 changed files with 3 additions and 3 deletions
|
|
@ -86,7 +86,7 @@ public static class EquipSlotExtensions
|
|||
EquipSlot.RFinger => "rir",
|
||||
EquipSlot.LFinger => "ril",
|
||||
EquipSlot.Wrists => "wrs",
|
||||
_ => throw new InvalidEnumArgumentException(),
|
||||
_ => "unk",
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -116,7 +116,7 @@ public static class EquipSlotExtensions
|
|||
EquipSlot.BodyHands => EquipSlot.Body,
|
||||
EquipSlot.BodyLegsFeet => EquipSlot.Body,
|
||||
EquipSlot.ChestHands => EquipSlot.Body,
|
||||
_ => throw new InvalidEnumArgumentException($"{value} ({(int)value}) is not valid."),
|
||||
_ => EquipSlot.Unknown,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ public readonly struct ImcManipulation : IMetaManipulation< ImcManipulation >
|
|||
{
|
||||
BodySlot = BodySlot.Unknown;
|
||||
SecondaryId = secondaryId;
|
||||
EquipSlot = equipSlot;
|
||||
EquipSlot = equipSlot == EquipSlot.Unknown ? EquipSlot.Head : equipSlot;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue