public static void UpdateBuildingColor(BuildingComplete building) { try { if (building.name == "PixelPackComplete" || building.name == "WallpaperComplete" || building.name.Contains(ExcludeKeyword) || building.HasTag(ExcludedTag)) { return; } Color color = ColorHelper.GetComponentMaterialColor(building); Filter(building.name, ref color); if (State.TileNames.Contains(building.name)) { ApplyColorToTile(building, color); } else { ApplyColorToBuilding(building, color); } } catch (Exception e) { State.Common.Logger.LogOnce("Failed to update material building color", e); } }