minor cleanup

This commit is contained in:
Jesse Plamondon-Willard 2017-05-28 01:05:41 -04:00
parent 0c992e562a
commit 01197b0eb1
1 changed files with 6 additions and 1 deletions

View File

@ -452,10 +452,15 @@ namespace StardewModdingAPI
{
while (true)
{
// get input
string input = Console.ReadLine();
if (string.IsNullOrWhiteSpace(input))
continue;
// parse input
try
{
if (!string.IsNullOrWhiteSpace(input) && !this.CommandManager.Trigger(input))
if (!this.CommandManager.Trigger(input))
this.Monitor.Log("Unknown command; type 'help' for a list of available commands.", LogLevel.Error);
}
catch (Exception ex)