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); }