Replaces all custom number comparisons with java provided ones. (#3434)

This commit is contained in:
yueh
2018-05-27 21:33:59 +02:00
committed by GitHub
parent 044e639827
commit 2894a7caa0
7 changed files with 12 additions and 57 deletions
@@ -79,7 +79,6 @@ import appeng.items.tools.powered.powersink.AEBasePoweredItem;
import appeng.me.helpers.BaseActionSource;
import appeng.me.storage.CellInventoryHandler;
import appeng.tile.misc.TilePaint;
import appeng.util.ItemSorters;
import appeng.util.Platform;
import appeng.util.item.AEItemStack;
@@ -295,7 +294,7 @@ public class ToolColorApplicator extends AEBasePoweredItem implements IStorageCe
@Override
public int compare( final IAEItemStack a, final IAEItemStack b )
{
return ItemSorters.compareInt( a.getItemDamage(), b.getItemDamage() );
return Integer.compare( a.getItemDamage(), b.getItemDamage() );
}
} );