private static void NewItem(CoreItem item, Menu parent) { try { if (item.Maps.Contains((MapType) MapId) || item.Maps.Contains(MapType.Common)) { Lists.Items.Add(item.CreateMenu(parent)); } } catch (Exception e) { Console.WriteLine(e); Game.PrintChat("<font color=\"#FFF280\">Exception thrown at Activator.NewItem: </font>: " + e.Message); } }
private static void NewItem(CoreItem item, Menu parent) { if (item.Maps.Contains((MapType) MapId) || item.Maps.Contains(MapType.Common)) { Lists.Items.Add(item.CreateMenu(parent)); } }