From b9bc502f40949c64ff2533ff7f33dd5395d9b7c0 Mon Sep 17 00:00:00 2001 From: ZaneYork Date: Wed, 2 Sep 2020 11:26:02 +0800 Subject: [PATCH] Bug fix --- .../ModLoading/Rewriters/HeuristicFieldAccessibilityRewriter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SMAPI/Framework/ModLoading/Rewriters/HeuristicFieldAccessibilityRewriter.cs b/src/SMAPI/Framework/ModLoading/Rewriters/HeuristicFieldAccessibilityRewriter.cs index 96645005..8b04b8ee 100644 --- a/src/SMAPI/Framework/ModLoading/Rewriters/HeuristicFieldAccessibilityRewriter.cs +++ b/src/SMAPI/Framework/ModLoading/Rewriters/HeuristicFieldAccessibilityRewriter.cs @@ -43,7 +43,7 @@ namespace StardewModdingAPI.Framework.ModLoading.Rewriters // skip if not broken FieldDefinition fieldDefinition = fieldRef.Resolve(); - if (fieldDefinition == null || fieldDefinition.IsPublic) + if (fieldDefinition == null || fieldDefinition.IsPublic || fieldDefinition.IsFamily) return false; // rewrite if possible