Fix Priority Comparator

This commit is contained in:
AlgorithmX2 2014-08-23 02:07:30 -05:00
parent 6f69b68ec2
commit d917ae7765

View file

@ -21,6 +21,7 @@ import appeng.api.storage.StorageChannel;
import appeng.api.storage.data.IAEStack; import appeng.api.storage.data.IAEStack;
import appeng.api.storage.data.IItemList; import appeng.api.storage.data.IItemList;
import appeng.me.cache.SecurityCache; import appeng.me.cache.SecurityCache;
import appeng.util.ItemSorters;
public class NetworkInventoryHandler<T extends IAEStack<T>> implements IMEInventoryHandler<T> public class NetworkInventoryHandler<T extends IAEStack<T>> implements IMEInventoryHandler<T>
{ {
@ -30,7 +31,7 @@ public class NetworkInventoryHandler<T extends IAEStack<T>> implements IMEInvent
@Override @Override
public int compare(Integer o1, Integer o2) public int compare(Integer o1, Integer o2)
{ {
return o2 - o1; return ItemSorters.compareInt( o2, o1 );
} }
}; };