Ported to 1.7

This commit is contained in:
AlgorithmX2
2014-02-08 19:34:52 -06:00
parent 30c1deb8cf
commit d50c7f6312
328 changed files with 2209 additions and 2311 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
package appeng.util.item;
import net.minecraft.item.Item;
import net.minecraft.nbt.NBTTagCompound;
import appeng.util.Platform;
@@ -11,8 +12,8 @@ public class SharedSearchObject
NBTTagCompound compound;
public AESharedNBT shared;
public SharedSearchObject(int itemID, int damageValue, NBTTagCompound tagCompound) {
def = (damageValue << Platform.DEF_OFFSET) | itemID;
public SharedSearchObject(Item itemID, int damageValue, NBTTagCompound tagCompound) {
def = (damageValue << Platform.DEF_OFFSET) | Item.itemRegistry.getIDForObject( itemID );
hash = Platform.NBTOrderlessHash( tagCompound );
compound = tagCompound;
}