tried a super dummy fix for the other bug

This commit is contained in:
termigator1359 committed 2020-07-02 13:09:04 -04:00
1 parent 6fb28f6ef7
commit 2ed47e2ecb
1 file changed
+5 -5
+5 -5
View File
@@ -41,12 +41,12 @@ namespace CalamityMod.Items
{
for (int i = 0; i < Main.maxNPCs; i++)
{
if (Main.npc[i].type == ModContent.NPCType<SuperDummyNPC>())
NPC npc = Main.npc[i];
if (npc.type == ModContent.NPCType<SuperDummyNPC>())
{
Main.npc[i].life = 0;
Main.npc[i].lifeRegen = 0;
Main.npc[i].checkDead();
Main.npc[i].netUpdate = true;
npc.active = false;
npc.netUpdate = true;
Main.PlaySound(SoundID.NPCDeath2, npc.position);
}
}
}