Add max range for being restricted

Change max reserved slots to 20
This commit is contained in:
Zidonuke 2011-12-27 14:53:55 -05:00
parent 31c4e1a37b
commit 14e2d8ca46
3 changed files with 7 additions and 4 deletions

View file

@ -615,7 +615,7 @@ namespace TShockAPI
if (!pos.Equals(args.Player.LastNetPosition))
{
float distance = Vector2.Distance(new Vector2((pos.X / 16f), (pos.Y / 16f)), new Vector2(Main.spawnTileX, Main.spawnTileY));
if (TShock.CheckIgnores(args.Player) && distance > 6f)
if (TShock.CheckIgnores(args.Player) && distance > TShock.Config.MaxRangeForDisabled)
{
if(args.Player.IgnoreActionsForCheating != "none")
{