Fix issue with Weathered Daggers.

This commit is contained in:
Ottermandias 2023-09-26 18:07:31 +02:00
parent a2de7ece25
commit 04b376e857

View file

@ -137,7 +137,7 @@ public class ItemManager : IDisposable
if (slot is not EquipSlot.MainHand and not EquipSlot.OffHand) if (slot is not EquipSlot.MainHand and not EquipSlot.OffHand)
return new EquipItem($"Invalid ({id.Id}-{type.Id}-{variant})", 0, 0, id, type, variant, 0); return new EquipItem($"Invalid ({id.Id}-{type.Id}-{variant})", 0, 0, id, type, variant, 0);
var item = IdentifierService.AwaitedService.Identify(id, type, variant, slot).FirstOrDefault(); var item = IdentifierService.AwaitedService.Identify(id, type, variant, slot).FirstOrDefault(i => i.Type.ToSlot() == slot);
return item.Valid return item.Valid
? item ? item
: EquipItem.FromIds(0, 0, id, type, variant, slot.ToEquipType(), null); : EquipItem.FromIds(0, 0, id, type, variant, slot.ToEquipType(), null);