Fixed Weird fuzzy business

This commit is contained in:
AlgorithmX2
2014-01-06 00:55:16 -06:00
parent 57a91c2969
commit 88bb735ed8
3 changed files with 21 additions and 16 deletions
+7
View File
@@ -39,6 +39,7 @@ public class AEItemDef
t.damageValue = damageValue;
t.dspDamage = dspDamage;
t.maxDamage = maxDamage;
t.tagCompound = tagCompound;
return t;
}
@@ -71,4 +72,10 @@ public class AEItemDef
}
return false;
}
public void reHash()
{
def = item.itemID << Platform.DEF_OFFSET | damageValue;
myHash = def ^ (tagCompound == null ? 0 : System.identityHashCode( tagCompound ));
}
}