diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-05-23 23:31:34 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-05-23 23:31:34 -0400 |
commit | 56919271fc60f85a752b0967fe27e69c1f3770c7 (patch) | |
tree | f3c4fceb9b8d1a6c19965bb7110816e2d402e2a5 | |
parent | 8f1379e27323f00361c1cef107cf4ab269827b16 (diff) | |
download | SMAPI-56919271fc60f85a752b0967fe27e69c1f3770c7.tar.gz SMAPI-56919271fc60f85a752b0967fe27e69c1f3770c7.tar.bz2 SMAPI-56919271fc60f85a752b0967fe27e69c1f3770c7.zip |
fix Context.IsInDrawLoop having a public setter
-rw-r--r-- | release-notes.md | 2 | ||||
-rw-r--r-- | src/StardewModdingAPI/Context.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/release-notes.md b/release-notes.md index 9506de9c..1a4bf67c 100644 --- a/release-notes.md +++ b/release-notes.md @@ -20,7 +20,7 @@ For players: * you have Stardew Valley 1.11 or earlier (which aren't compatible); * you run `install.exe` from within the downloaded zip file. * Fixed "unknown mod" deprecation warnings by improving how SMAPI detects the mod using the event. -* Fixed rare crash when window loses focuses for a few players. +* Fixed rare crash when window loses focus for a few players. For modders: * Added `Context.IsInDrawLoop` for specialised mods. diff --git a/src/StardewModdingAPI/Context.cs b/src/StardewModdingAPI/Context.cs index 6ceabd5a..3fe70c68 100644 --- a/src/StardewModdingAPI/Context.cs +++ b/src/StardewModdingAPI/Context.cs @@ -17,7 +17,7 @@ namespace StardewModdingAPI public static bool IsWorldReady { get; internal set; } /// <summary>Whether the game is currently running the draw loop. This isn't relevant to most mods, since you should use <see cref="GraphicsEvents.OnPostRenderEvent"/> to draw to the screen.</summary> - public static bool IsInDrawLoop { get; set; } + public static bool IsInDrawLoop { get; internal set; } /**** ** Internal |