fix mods being able to change cursor position reported to other mods

This commit is contained in:
Jesse Plamondon-Willard 2017-12-10 13:37:59 -05:00
parent 1398e591ab
commit dd7b5ac462
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
## 2.3 ## 2.3
* For modders: * For modders:
* Fixed error when using the reflection API accesses with a property with either `get` and `set` missing. * Fixed error when using the reflection API accesses with a property with either `get` and `set` missing.
* Fixed issue where a mod could change the cursor position reported to other mods.
## 2.2 ## 2.2
* For players: * For players:

View File

@ -16,7 +16,7 @@ namespace StardewModdingAPI.Events
public SButton Button { get; } public SButton Button { get; }
/// <summary>The current cursor position.</summary> /// <summary>The current cursor position.</summary>
public ICursorPosition Cursor { get; set; } public ICursorPosition Cursor { get; }
/// <summary>Whether the input is considered a 'click' by the game for enabling action.</summary> /// <summary>Whether the input is considered a 'click' by the game for enabling action.</summary>
[Obsolete("Use " + nameof(EventArgsInput.IsActionButton) + " or " + nameof(EventArgsInput.IsUseToolButton) + " instead")] // deprecated in SMAPI 2.1 [Obsolete("Use " + nameof(EventArgsInput.IsActionButton) + " or " + nameof(EventArgsInput.IsUseToolButton) + " instead")] // deprecated in SMAPI 2.1