From 0f781cebbadf29d60996e12ab6271d0d88820c03 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Wed, 21 May 2014 09:43:41 -0500 Subject: [PATCH] Sided TIlehash should make order matter. --- util/Platform.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/Platform.java b/util/Platform.java index cb22f106..5e29ab5b 100644 --- a/util/Platform.java +++ b/util/Platform.java @@ -1423,7 +1423,8 @@ public class Platform int offset = 0; 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; } } }