tried a super dummy fix for the other bug
This commit is contained in:
1 parent
6fb28f6ef7
commit
2ed47e2ecb
1 file changed
+5
-5
+5
-5
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user