From 9f0210a255152dc434405698512c941c4ad5c8d8 Mon Sep 17 00:00:00 2001 From: CJB Date: Wed, 30 Mar 2016 20:39:40 +0200 Subject: [PATCH] Freeze fix when booting up Journey of the Prairie king --- StardewModdingAPI/Inheritance/SGame.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/StardewModdingAPI/Inheritance/SGame.cs b/StardewModdingAPI/Inheritance/SGame.cs index 1389ef22..ede5b5c8 100644 --- a/StardewModdingAPI/Inheritance/SGame.cs +++ b/StardewModdingAPI/Inheritance/SGame.cs @@ -208,8 +208,8 @@ namespace StardewModdingAPI.Inheritance /// public int ThumbstickMotionMargin { - get { return (int)typeof(Game1).GetBaseFieldValue(Program.gamePtr, "thumbstickMotionMargin"); } - set { typeof(Game1).SetBaseFieldValue(this, "thumbstickMotionMargin", value); } + 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); } } ///