//in Terraria.NPC split VanillaFindFrame from FindFrame and make FindFrame call this internal static void FindFrame(NPC npc, int frameHeight) { int type = npc.type; if (IsModNPC(npc) && npc.modNPC.animationType > 0) { npc.type = npc.modNPC.animationType; } npc.VanillaFindFrame(frameHeight); npc.type = type; if (IsModNPC(npc)) { npc.modNPC.FindFrame(frameHeight); } foreach (GlobalNPC globalNPC in globalNPCs) { globalNPC.FindFrame(npc, frameHeight); } }