public static void Prefix(RanchModel __instance, RanchDirector.PaletteType type, ref RanchDirector.Palette pal) { if (!((RanchDirector)__instance.participant).paletteDict.ContainsKey(pal)) { pal = ChromaRegistry.GetDefaultPaletteForType(type); } }
public static void Prefix(RanchModel __instance, RanchDirector.PaletteType type, ref RanchDirector.Palette pal) { if (!Enum.IsDefined(typeof(RanchDirector.Palette), pal)) { pal = ChromaPackRegistry.GetDefaultPaletteForType(type); } }