public static void SetChatButtons(ref string button, ref string button2) { if (Main.player[Main.myPlayer].talkNPC >= 0) { NPC npc = Main.npc[Main.player[Main.myPlayer].talkNPC]; npc.modNPC?.SetChatButtons(ref button, ref button2); } }