Fixed Bug: #0210 - Fuzzy on an export bus do not ignore NBT data and metadata.

Fixed Serious issue with items with the same hashes merging.
This commit is contained in:
AlgorithmX2
2014-03-21 22:58:03 -05:00
parent 2751a1467f
commit 0bfded7bbf
4 changed files with 34 additions and 10 deletions
+10 -3
View File
@@ -18,7 +18,7 @@ import appeng.util.Platform;
public class AESharedNBT extends NBTTagCompound implements IAETagCompound
{
private Item itemid;
private Item item;
private int meta, hash;
public SharedSearchObject sso;
private IItemComparison comp;
@@ -36,10 +36,17 @@ public class AESharedNBT extends NBTTagCompound implements IAETagCompound
private AESharedNBT(Item itemID, int damageValue) {
super();
itemid = itemID;
item = itemID;
meta = damageValue;
}
public AESharedNBT(int fakeValue) {
super();
item = null;
meta = 0;
hash = fakeValue;
}
@Override
public NBTTagCompound getNBTTagCompoundCopy()
{
@@ -78,7 +85,7 @@ public class AESharedNBT extends NBTTagCompound implements IAETagCompound
public boolean matches(Item itemid2, int meta2, int orderlessHash)
{
return itemid2 == itemid && meta == meta2 && hash == orderlessHash;
return itemid2 == item && meta == meta2 && hash == orderlessHash;
}
public boolean comparePreciseWithRegistry(AESharedNBT tagCompound)