public static void AddCheck(this List<int> list, int type) { //Lowest npc id -> highest npc id if (type < -65 || type > Main.maxNPCTypes) return; list.Add(type); }