fix incorrect input check, update release notes

This commit is contained in:
Jesse Plamondon-Willard 2019-03-21 23:14:31 -04:00
parent 16b37e0004
commit a0fc06c395
No known key found for this signature in database
GPG Key ID: 7D7C8097B62033CE
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@
These changes have not been released yet. These changes have not been released yet.
* For players: * For players:
* Improved performance.
* SMAPI now prevents invalid items from breaking menus on hover. * SMAPI now prevents invalid items from breaking menus on hover.
* Fixed Save Backup not pruning old backups if they're uncompressed. * Fixed Save Backup not pruning old backups if they're uncompressed.
* Fixed issues when a farmhand reconnects before the game notices they're disconnected. * Fixed issues when a farmhand reconnects before the game notices they're disconnected.

View File

@ -94,7 +94,10 @@ namespace StardewModdingAPI.Framework.Input
this.RealKeyboard = realKeyboard; this.RealKeyboard = realKeyboard;
this.RealMouse = realMouse; this.RealMouse = realMouse;
if (cursorAbsolutePos != this.CursorPositionImpl?.AbsolutePixels || playerTilePos != this.LastPlayerTile) if (cursorAbsolutePos != this.CursorPositionImpl?.AbsolutePixels || playerTilePos != this.LastPlayerTile)
{
this.LastPlayerTile = playerTilePos;
this.CursorPositionImpl = this.GetCursorPosition(realMouse, cursorAbsolutePos); this.CursorPositionImpl = this.GetCursorPosition(realMouse, cursorAbsolutePos);
}
// update suppressed states // update suppressed states
this.SuppressButtons.RemoveWhere(p => !this.GetStatus(activeButtons, p).IsDown()); this.SuppressButtons.RemoveWhere(p => !this.GetStatus(activeButtons, p).IsDown());