This commit is contained in:
ZaneYork 2020-09-02 11:26:02 +08:00
parent 1bb82139ed
commit b9bc502f40
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ namespace StardewModdingAPI.Framework.ModLoading.Rewriters
// skip if not broken // skip if not broken
FieldDefinition fieldDefinition = fieldRef.Resolve(); FieldDefinition fieldDefinition = fieldRef.Resolve();
if (fieldDefinition == null || fieldDefinition.IsPublic) if (fieldDefinition == null || fieldDefinition.IsPublic || fieldDefinition.IsFamily)
return false; return false;
// rewrite if possible // rewrite if possible