Fix issue with Double Chests not properly re-initializing their adapter when they change to a double chest.

This commit is contained in:
AlgorithmX2
2014-01-01 23:52:16 -06:00
parent db4cf7aa5d
commit b4e0eb667f
+16 -2
View File
@@ -1255,7 +1255,21 @@ public class Platform
int hash = target.hashCode(); int hash = target.hashCode();
if ( target instanceof IInventory ) if ( target instanceof TileEntityChest )
{
TileEntityChest targ = (TileEntityChest) target;
targ.checkForAdjacentChests();
if ( targ.adjacentChestZNeg != null )
hash ^= targ.adjacentChestZNeg.hashCode();
else if ( targ.adjacentChestZPosition != null )
hash ^= targ.adjacentChestZPosition.hashCode();
else if ( targ.adjacentChestXPos != null )
hash ^= targ.adjacentChestXPos.hashCode();
else if ( targ.adjacentChestXNeg != null )
hash ^= targ.adjacentChestXNeg.hashCode();
}
else if ( target instanceof IInventory )
{
hash ^= ((IInventory) target).getSizeInventory(); hash ^= ((IInventory) target).getSizeInventory();
if ( target instanceof ISidedInventory ) if ( target instanceof ISidedInventory )
@@ -1269,8 +1283,8 @@ public class Platform
} }
} }
} }
}
return hash; return hash;
} }
} }