From 2ed47e2ecb408ca057b7f6cadbd29daae82f9991 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Thu, 2 Jul 2020 13:09:04 -0400 Subject: [PATCH] tried a super dummy fix for the other bug --- Items/SuperDummy.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Items/SuperDummy.cs b/Items/SuperDummy.cs index bbb6e4b678..2003dc491d 100644 --- a/Items/SuperDummy.cs +++ b/Items/SuperDummy.cs @@ -41,12 +41,12 @@ namespace CalamityMod.Items { for (int i = 0; i < Main.maxNPCs; i++) { - if (Main.npc[i].type == ModContent.NPCType()) + NPC npc = Main.npc[i]; + if (npc.type == ModContent.NPCType()) { - 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); } } }