Merge pull request #86 from CJBok/master

Freeze fix when booting up Journey of the Prairie king
This commit is contained in:
Carl 2016-03-30 19:41:00 +01:00
commit 5975bbc3c2
1 changed files with 2 additions and 2 deletions

View File

@ -208,8 +208,8 @@ namespace StardewModdingAPI.Inheritance
/// </summary> /// </summary>
public int ThumbstickMotionMargin public int ThumbstickMotionMargin
{ {
get { return (int)typeof(Game1).GetBaseFieldValue<object>(Program.gamePtr, "thumbstickMotionMargin"); } get { return (int)typeof(Game1).GetField("thumbstickMotionMargin", BindingFlags.NonPublic | BindingFlags.Static).GetValue(null); }
set { typeof(Game1).SetBaseFieldValue<object>(this, "thumbstickMotionMargin", value); } set { typeof(Game1).GetField("thumbstickMotionMargin", BindingFlags.NonPublic | BindingFlags.Static).SetValue(null, value); }
} }
/// <summary> /// <summary>