Added workaround for sorting items on amount with fake amount when showing crafting label
This commit is contained in:
parent
e65083b045
commit
b5b8050c4c
1 changed files with 2 additions and 2 deletions
|
@ -80,9 +80,9 @@ public class ItemSorters
|
|||
{
|
||||
if( getDirection() == SortDir.ASCENDING )
|
||||
{
|
||||
return compareLong( o2.getStackSize(), o1.getStackSize() );
|
||||
return compareLong( o2.getStackSize() - ( o2.getShowCraftingLabel() ? 1 : 0 ), o1.getStackSize() - ( o1.getShowCraftingLabel() ? 1 : 0 ) );
|
||||
}
|
||||
return compareLong( o1.getStackSize(), o2.getStackSize() );
|
||||
return compareLong( o1.getStackSize() - ( o1.getShowCraftingLabel() ? 1 : 0 ), o2.getStackSize() - ( o2.getShowCraftingLabel() ? 1 : 0 ) );
|
||||
}
|
||||
};
|
||||
private static IInvTweaks api;
|
||||
|
|
Loading…
Reference in a new issue