mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-30 12:23:42 +01:00
.
This commit is contained in:
parent
f8e9cc8988
commit
8526ce4f33
4 changed files with 29 additions and 23 deletions
|
|
@ -337,14 +337,14 @@ public class DesignManager
|
|||
|
||||
if (item.Type != currentMain.Type)
|
||||
{
|
||||
var newOffId = FullEquipTypeExtensions.OffhandTypes.Contains(item.Type)
|
||||
var newOffId = item.Type.Offhand().IsOffhandType()
|
||||
? item.Id
|
||||
: ItemManager.NothingId(item.Type.Offhand());
|
||||
if (!_items.IsOffhandValid(item, newOffId, out newOff))
|
||||
return;
|
||||
}
|
||||
|
||||
if (!design.DesignData.SetItem(EquipSlot.MainHand, item) && !design.DesignData.SetItem(EquipSlot.OffHand, newOff))
|
||||
if (!(design.DesignData.SetItem(EquipSlot.MainHand, item) | design.DesignData.SetItem(EquipSlot.OffHand, newOff)))
|
||||
return;
|
||||
|
||||
design.LastEdit = DateTimeOffset.UtcNow;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue