Skip to content

Commit adde8d7

Browse files
committed
fix null error on epic games
1 parent b593fbe commit adde8d7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

PolyTechMain.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,7 @@ static bool Prepare()
939939
static MethodInfo TargetMethod()
940940
{
941941
var steamStatsType = typeof(GameStateManager).Assembly.GetType("SteamStatsAndAchievements");
942+
if (steamStatsType == null) return null;
942943
return AccessTools.Method(steamStatsType, "UploadLeaderboardScore");
943944
}
944945

0 commit comments

Comments
 (0)