}
// Add the given wearables to the new wearables collection
for (int i = 0; i < wearableItems.size(); i++)
{
InventoryWearable wearableItem = wearableItems.get(i);
WearableData wd = new WearableData();
wd.AssetID = wearableItem.AssetUUID;
wd.AssetType = wearableItem.AssetType;
wd.ItemID = wearableItem.UUID;
wd.WearableType = wearableItem.getWearableType();
newWearables.put(wearableItem.getWearableType(), wd);
}
// Replace the Wearables collection
Wearables = newWearables;
}