From 32947a1a1e4d391a3dbc43317a036b332637f29e Mon Sep 17 00:00:00 2001 From: Shank Date: Sun, 5 Jun 2011 14:06:40 -0600 Subject: [PATCH] Changed /maxspawns to point to defaultMaxSpawns Closes #18 --- TShockAPI/Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 0b2434c5..206db6bd 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -511,7 +511,7 @@ namespace TShockAPI int ply = args.PlayerID; int amount = Convert.ToInt32(args.Message.Remove(0, 10)); int.TryParse(args.Message.Remove(0, 10), out amount); - NPC.defaultSpawnRate = amount; + NPC.defaultMaxSpawns = amount; Tools.Broadcast(Tools.FindPlayer(ply) + " changed the maximum spawns to: " + amount); }