Added workaround for sorting items on amount with fake amount when showing crafting label
This commit is contained in:
@@ -80,9 +80,9 @@ public class ItemSorters
|
|||||||
{
|
{
|
||||||
if( getDirection() == SortDir.ASCENDING )
|
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;
|
private static IInvTweaks api;
|
||||||
|
|||||||
Reference in New Issue
Block a user