Improved AEItemStack.compareTo performance.

This commit is contained in:
yueh
2015-03-08 15:27:27 +01:00
parent b8e2d73aa0
commit 53f448e578
2 changed files with 16 additions and 8 deletions
@@ -37,7 +37,7 @@ public class AEItemDef
public int def;
private final int itemID;
public final int itemID;
public final Item item;
public int damageValue;
@@ -62,7 +62,7 @@ public class AEItemDef
public AEItemDef(Item it) {
this.item = it;
this.itemID = System.identityHashCode( this.item );
this.itemID = Item.getIdFromItem( it );
}
public AEItemDef copy()