From 56919271fc60f85a752b0967fe27e69c1f3770c7 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Tue, 23 May 2017 23:31:34 -0400 Subject: fix Context.IsInDrawLoop having a public setter --- release-notes.md | 2 +- 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; } /// Whether the game is currently running the draw loop. This isn't relevant to most mods, since you should use to draw to the screen. - public static bool IsInDrawLoop { get; set; } + public static bool IsInDrawLoop { get; internal set; } /**** ** Internal -- cgit