mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix all warnings & Trim (#2226)
* Fix AutoFishing crash * Fix all warnings * Remove DotNetZip. * Fix the usage of HttpClient.
This commit is contained in:
parent
4aa6c1c99f
commit
1d52d1eadd
227 changed files with 2201 additions and 43564 deletions
|
|
@ -13,8 +13,8 @@ namespace MinecraftClient.Proxy
|
|||
{
|
||||
public enum Type { HTTP, SOCKS4, SOCKS4a, SOCKS5 };
|
||||
|
||||
private static ProxyClientFactory factory = new ProxyClientFactory();
|
||||
private static IProxyClient proxy;
|
||||
private static readonly ProxyClientFactory factory = new();
|
||||
private static IProxyClient? proxy;
|
||||
private static bool proxy_ok = false;
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -24,7 +24,7 @@ namespace MinecraftClient.Proxy
|
|||
/// <param name="port">Target port</param>
|
||||
/// <param name="login">True if the purpose is logging in to a Minecraft account</param>
|
||||
|
||||
public static TcpClient newTcpClient(string host, int port, bool login = false)
|
||||
public static TcpClient NewTcpClient(string host, int port, bool login = false)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue