From b290802e6a9d7610241e1a905881e0372f6f0b88 Mon Sep 17 00:00:00 2001 From: ricky Date: Fri, 17 Jun 2011 11:28:09 +1000 Subject: [PATCH] Errr forgot the for loop for amount --- TShockAPI/Commands.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 86b71180..3f0d5009 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -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