}
// Only send the packet out if there's something to check
if (hashes.size() > 0)
{
AgentCachedTexturePacket cache = new AgentCachedTexturePacket();
cache.AgentData.AgentID = Client.self.getAgentID();
cache.AgentData.SessionID = Client.self.getSessionID();
cache.AgentData.SerialNum = CacheCheckSerialNum.incrementAndGet();
cache.WearableData = hashes.toArray(new WearableDataBlock[0]);