Getting there

This commit is contained in:
Lucas Nicodemus 2012-01-20 23:50:09 -07:00
parent 940341e7bb
commit 5f31937af7

View file

@ -1103,18 +1103,20 @@ namespace TShockAPI
}
}
}
return true;
}
if (TShock.Config.AllowIce && tileType == 127)
if (TShock.Config.AllowIce)
{
player.IceTiles.Add(new Point(tileX, tileY));
}
else
{
player.SendMessage("You do not have permission to build!", Color.Red);
return true;
if (tileType == 127)
{
player.IceTiles.Add(new Point(tileX, tileY));
return false;
}
}
player.SendMessage("You do not have permission to build!", Color.Red);
return true;
}
if (!player.Group.HasPermission(Permissions.editspawn) && !Regions.CanBuild(tileX, tileY, player) &&
Regions.InArea(tileX, tileY))