diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-05-23 12:19:06 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-05-23 12:19:06 -0400 |
commit | 62665649bdec8b1b45b04e2d48bc68da689124d4 (patch) | |
tree | 6334509873f0af1770279db5993dc54d267138c5 /src/SMAPI/Framework/SCore.cs | |
parent | 2ab2182645179129997eac3fccb63f6f0683dbe1 (diff) | |
download | SMAPI-62665649bdec8b1b45b04e2d48bc68da689124d4.tar.gz SMAPI-62665649bdec8b1b45b04e2d48bc68da689124d4.tar.bz2 SMAPI-62665649bdec8b1b45b04e2d48bc68da689124d4.zip |
shortcut common cases in hot code paths
Diffstat (limited to 'src/SMAPI/Framework/SCore.cs')
-rw-r--r-- | src/SMAPI/Framework/SCore.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs index 7042e83a..67f78400 100644 --- a/src/SMAPI/Framework/SCore.cs +++ b/src/SMAPI/Framework/SCore.cs @@ -596,6 +596,7 @@ namespace StardewModdingAPI.Framework /********* ** Execute commands *********/ + if (this.ScreenCommandQueue.Value.Any()) { var commandQueue = this.ScreenCommandQueue.Value; foreach ((Command? command, string? name, string[]? args) in commandQueue) |