private static bool AccCheck(Item newItem, int slot) { if (Main.player[Main.myPlayer].armor[slot].IsTheSameAs(newItem)) { return false; } if (newItem.AccCheck != null) return !newItem.AccCheck(Main.player[Main.myPlayer], slot); for (int i = 0; i < Main.player[Main.myPlayer].armor.Length; i++) { if (newItem.IsTheSameAs(Main.player[Main.myPlayer].armor[i])) { return true; } } return false; }