mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +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
|
|
@ -1,9 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace MinecraftClient.Logger
|
||||
namespace MinecraftClient.Logger
|
||||
{
|
||||
/// <summary>
|
||||
/// Abstract class providing basic implementation of the ILogger interface
|
||||
|
|
@ -30,7 +25,7 @@ namespace MinecraftClient.Logger
|
|||
|
||||
public void Chat(object msg)
|
||||
{
|
||||
Chat(msg.ToString());
|
||||
Chat(msg.ToString() ?? string.Empty);
|
||||
}
|
||||
|
||||
public abstract void Debug(string msg);
|
||||
|
|
@ -42,7 +37,7 @@ namespace MinecraftClient.Logger
|
|||
|
||||
public void Debug(object msg)
|
||||
{
|
||||
Debug(msg.ToString());
|
||||
Debug(msg.ToString() ?? string.Empty);
|
||||
}
|
||||
|
||||
public abstract void Error(string msg);
|
||||
|
|
@ -54,7 +49,7 @@ namespace MinecraftClient.Logger
|
|||
|
||||
public void Error(object msg)
|
||||
{
|
||||
Error(msg.ToString());
|
||||
Error(msg.ToString() ?? string.Empty);
|
||||
}
|
||||
|
||||
public abstract void Info(string msg);
|
||||
|
|
@ -66,7 +61,7 @@ namespace MinecraftClient.Logger
|
|||
|
||||
public void Info(object msg)
|
||||
{
|
||||
Info(msg.ToString());
|
||||
Info(msg.ToString() ?? string.Empty);
|
||||
}
|
||||
|
||||
public abstract void Warn(string msg);
|
||||
|
|
@ -78,12 +73,12 @@ namespace MinecraftClient.Logger
|
|||
|
||||
public void Warn(object msg)
|
||||
{
|
||||
Warn(msg.ToString());
|
||||
Warn(msg.ToString() ?? string.Empty);
|
||||
}
|
||||
|
||||
protected virtual void Log(object msg)
|
||||
{
|
||||
ConsoleIO.WriteLineFormatted(msg.ToString());
|
||||
ConsoleIO.WriteLineFormatted(msg.ToString() ?? string.Empty);
|
||||
}
|
||||
|
||||
protected virtual void Log(string msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue