private static bool IsPlayerInChest(int i) { for (int index = 0; index < 255; ++index) { if (Main.player[index].chest == i) return true; } return false; }