summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-11-16 21:31:07 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-11-16 21:31:07 -0500
commitd21bfc3ada2d9a1d6bf6084f7e54d49120f4d82e (patch)
treef58a483648f77874131ea0a2984c311a1f313ceb
parentdcfae980bf74386c624b0d059a83e95ec1aedc0b (diff)
downloadSMAPI-d21bfc3ada2d9a1d6bf6084f7e54d49120f4d82e.tar.gz
SMAPI-d21bfc3ada2d9a1d6bf6084f7e54d49120f4d82e.tar.bz2
SMAPI-d21bfc3ada2d9a1d6bf6084f7e54d49120f4d82e.zip
fix error when entering an incorrect console command
-rw-r--r--src/SMAPI/Framework/SGame.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/SGame.cs b/src/SMAPI/Framework/SGame.cs
index 3de97aea..75cf4c52 100644
--- a/src/SMAPI/Framework/SGame.cs
+++ b/src/SMAPI/Framework/SGame.cs
@@ -303,7 +303,10 @@ namespace StardewModdingAPI.Framework
try
{
if (!this.CommandManager.TryParse(rawInput, out name, out args, out command))
+ {
this.Monitor.Log("Unknown command; type 'help' for a list of available commands.", LogLevel.Error);
+ continue;
+ }
}
catch (Exception ex)
{