Skip to content

Commit

Permalink
update sort
Browse files Browse the repository at this point in the history
  • Loading branch information
plusls committed Jun 28, 2021
1 parent 35544e8 commit 0013724
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ private static int cmp(ItemStack a, ItemStack b) {
return ShulkerBoxItemUtil.cmpShulkerBox(a.getTag(), b.getTag());
}
if (aId == bId) {
return a.getCount() - b.getCount();
// 物品少的排在后面
return b.getCount() - a.getCount();
}
return aId - bId;
}
Expand Down

0 comments on commit 0013724

Please sign in to comment.