Terraria.ModLoader.ItemLoader.AutoLightSelect C# (CSharp) Method

AutoLightSelect() public static method

public static AutoLightSelect ( Item item, bool &dryTorch, bool &wetTorch, bool &glowstick ) : void
item Item
dryTorch bool
wetTorch bool
glowstick bool
return void
        public static void AutoLightSelect(Item item, ref bool dryTorch, ref bool wetTorch, ref bool glowstick)
        {
            if (item.modItem != null)
            {
                item.modItem.AutoLightSelect(ref dryTorch, ref wetTorch, ref glowstick);
                if (wetTorch)
                {
                    dryTorch = false;
                    glowstick = false;
                }
                if (dryTorch)
                {
                    glowstick = false;
                }
            }
        }