Crashfix mnigames

This commit is contained in:
CJB 2016-04-05 13:43:57 +02:00
parent 22ede82e89
commit c7201d83eb
1 changed files with 2 additions and 11 deletions

View File

@ -203,15 +203,6 @@ namespace StardewModdingAPI.Inheritance
set { typeof (Game1).SetBaseFieldValue<RenderTarget2D>(this, "screen", value); }
}
/// <summary>
///
/// </summary>
public int ThumbstickMotionMargin
{
get { return (int)typeof(Game1).GetField("thumbstickMotionMargin", BindingFlags.NonPublic | BindingFlags.Static).GetValue(null); }
set { typeof(Game1).GetField("thumbstickMotionMargin", BindingFlags.NonPublic | BindingFlags.Static).SetValue(null, value); }
}
/// <summary>
/// The current Colour in Game1 (Private field, uses reflection)
/// </summary>
@ -581,8 +572,8 @@ namespace StardewModdingAPI.Inheritance
}
else
{
if (ThumbstickMotionMargin > 0)
ThumbstickMotionMargin -= gameTime.ElapsedGameTime.Milliseconds;
if (thumbstickMotionMargin > 0)
thumbstickMotionMargin -= gameTime.ElapsedGameTime.Milliseconds;
if (IsActive)
{
KeyboardState state1 = Keyboard.GetState();