Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Set the active property of handled npc spawns so false so that they d…
Browse files Browse the repository at this point in the history
…on't actually get created.
  • Loading branch information
Zack Piispanen committed Oct 11, 2014
1 parent 2fc5b09 commit 50a04c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Terraria/NPC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34052,6 +34052,7 @@ public static int NewNPC(int X, int Y, int Type, int Start = 0)
Main.npc[num].SetDefaults(Type, -1f);
if (ServerApi.Hooks.InvokeNpcSpawn(Main.npc[num]))
{
Main.npc[num].active = false;
return 200;
}
if (NPC.TypeToNum(Type) != -1)
Expand Down

0 comments on commit 50a04c4

Please sign in to comment.