Crashfix mnigames
This commit is contained in:
parent
22ede82e89
commit
c7201d83eb
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue