Errr forgot the for loop for amount
This commit is contained in:
parent
51aa337839
commit
b290802e6a
1 changed files with 2 additions and 1 deletions
|
|
@ -582,7 +582,8 @@ namespace TShockAPI
|
|||
|
||||
if (npc.type >= 1 && npc.type < Main.maxNPCTypes)
|
||||
{
|
||||
TSPlayer.Server.SpawnNPC(npc.type, npc.name, (int)args.Player.X, (int)args.Player.Y);
|
||||
for (int i = 0; i < amount; i++)
|
||||
TSPlayer.Server.SpawnNPC(npc.type, npc.name, (int)args.Player.X, (int)args.Player.Y);
|
||||
Tools.Broadcast(string.Format("{0} was spawned {1} time(s).", npc.name, amount));
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue