fix: Fixes client crash while selling items to NPC (#1296)
This commit is contained in:
parent
f82f61b4c5
commit
bfb987c758
4 changed files with 19 additions and 12 deletions
|
|
@ -51,6 +51,14 @@ public class SellItemResponse
|
|||
public int Amount { get; }
|
||||
}
|
||||
|
||||
public class SellItemStateComparer : IEqualityComparer<SellItemState>
|
||||
{
|
||||
public bool Equals(SellItemState l, SellItemState r) =>
|
||||
l == null && r == null || l != null && r != null && l.Item == r.Item;
|
||||
|
||||
public int GetHashCode(SellItemState obj) => obj.Item.GetHashCode();
|
||||
}
|
||||
|
||||
public class SellItemState
|
||||
{
|
||||
public SellItemState(Item item, int price, string name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue