fix IsWorldReady being editable by mods

This commit is contained in:
Jesse Plamondon-Willard 2023-03-26 13:30:58 -04:00
parent d2134f0f70
commit c0ac58f277
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@
* For mod authors: * For mod authors:
* Added `IsActiveForScreen()` method to `PerScreen<T>`. * Added `IsActiveForScreen()` method to `PerScreen<T>`.
* Updated to [FluentHttpClient](https://github.com/Pathoschild/FluentHttpClient#readme) 4.3.0 (see [changes](https://github.com/Pathoschild/FluentHttpClient/blob/develop/RELEASE-NOTES.md#430)). * Updated to [FluentHttpClient](https://github.com/Pathoschild/FluentHttpClient#readme) 4.3.0 (see [changes](https://github.com/Pathoschild/FluentHttpClient/blob/develop/RELEASE-NOTES.md#430)).
* Fixed `Context.IsWorldReady` being editable by mods.
## 3.18.2 ## 3.18.2
Released 09 January 2023 for Stardew Valley 1.5.6 or later. Released 09 January 2023 for Stardew Valley 1.5.6 or later.

View File

@ -60,7 +60,7 @@ namespace StardewModdingAPI
public static bool IsWorldReady public static bool IsWorldReady
{ {
get => Context.IsWorldReadyForScreen.Value; get => Context.IsWorldReadyForScreen.Value;
set => Context.IsWorldReadyForScreen.Value = value; internal set => Context.IsWorldReadyForScreen.Value = value;
} }
/// <summary>Whether <see cref="IsWorldReady"/> is true and the player is free to act in the world (no menu is displayed, no cutscene is in progress, etc).</summary> /// <summary>Whether <see cref="IsWorldReady"/> is true and the player is free to act in the world (no menu is displayed, no cutscene is in progress, etc).</summary>