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
+2 -2
View File
@@ -463,7 +463,7 @@ public class Platform
while (i.hasNext())
{
String name = i.next();
hash += NBTOrderlessHash( ctA.getTag( name ) );
hash += name.hashCode() ^ NBTOrderlessHash( ctA.getTag( name ) );
}
return hash;
@@ -477,7 +477,7 @@ public class Platform
List<NBTBase> l = tagList( lA );
for (int x = 0; x < l.size(); x++)
{
hash += NBTOrderlessHash( l.get( x ) );
hash += ((Integer) x).hashCode() ^ NBTOrderlessHash( l.get( x ) );
}
return hash;