Skip to content

Commit

Permalink
Fix small bug in shop trade feature
Browse files Browse the repository at this point in the history
  • Loading branch information
TyrenDe committed Jan 17, 2021
1 parent 6d93b30 commit 52947eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MixItUp.Base/Model/Currency/InventoryModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ public async Task PerformTradeCommand(UserViewModel user, IEnumerable<string> ar
else if (this.tradeSender != null && this.tradeReceiver != null && this.tradeReceiver.User.Equals(user) && this.tradeReceiver.Amount == 0 && arguments.Count() >= 1)
{
int amount = 1;
IEnumerable<string> itemArgs = arguments.ToList();
IEnumerable<string> itemArgs = arguments.Skip(1);
InventoryItemModel item = this.GetItem(string.Join(" ", itemArgs));

if (item == null && itemArgs.Count() > 1)
Expand Down

0 comments on commit 52947eb

Please sign in to comment.