Sided TIlehash should make order matter.

This commit is contained in:
AlgorithmX2 2014-05-21 09:43:41 -05:00
parent dc0c015a97
commit 0f781cebba

View file

@ -1423,7 +1423,8 @@ public class Platform
int offset = 0; int offset = 0;
for (Integer Side : ((ISidedInventory) target).getAccessibleSlotsFromSide( dir.ordinal() )) for (Integer Side : ((ISidedInventory) target).getAccessibleSlotsFromSide( dir.ordinal() ))
{ {
hash ^= Side << (offset++ % 20); int c = (Side << (offset++ % 8)) ^ (1 << dir.ordinal());
hash = c + (hash << 6) + (hash << 16) - hash;
} }
} }
} }