SpawnRate now uses default spawn rate
This commit is contained in:
parent
95a066d145
commit
68014b4853
1 changed files with 2 additions and 2 deletions
|
|
@ -423,7 +423,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.maxSpawns = amount;
|
||||
NPC.defaultSpawnRate = amount;
|
||||
Tools.Broadcast(Tools.FindPlayer(ply) + " changed the maximum spawns to: " + amount);
|
||||
}
|
||||
|
||||
|
|
@ -432,7 +432,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.spawnRate = amount;
|
||||
NPC.defaultSpawnRate = amount;
|
||||
Tools.Broadcast(Tools.FindPlayer(ply) + " changed the spawn rate to: " + amount);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue