Missing null check in OnChat.
Added exception handler to command runner so it wont get swallowed by terraria
This commit is contained in:
parent
527d9bb203
commit
c52e8cbf5d
3 changed files with 24 additions and 7 deletions
|
|
@ -79,6 +79,16 @@ namespace TShockAPI
|
|||
{
|
||||
Write(message, LogLevel.Error);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes an error to the log file.
|
||||
/// </summary>
|
||||
/// <param name="message">The message to be written.</param>
|
||||
public static void ConsoleError(String message)
|
||||
{
|
||||
Console.WriteLine(message);
|
||||
Write(message, LogLevel.Error);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes a warning to the log file.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue