diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-30 15:38:29 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-30 15:38:29 -0400 |
commit | 96a8401c03bc38b682a5a793fb4d15766a2663b2 (patch) | |
tree | 54b78c39c80235f07e965fb04c2eb3ade86bd77a /src/SMAPI | |
parent | 3463ee806ccb15930045c0be85a51e2353c061bd (diff) | |
download | SMAPI-96a8401c03bc38b682a5a793fb4d15766a2663b2.tar.gz SMAPI-96a8401c03bc38b682a5a793fb4d15766a2663b2.tar.bz2 SMAPI-96a8401c03bc38b682a5a793fb4d15766a2663b2.zip |
fix types getting rewritten unnecessarily if the source & target types have the same full name (#556)
Diffstat (limited to 'src/SMAPI')
-rw-r--r-- | src/SMAPI/Framework/ModLoading/Rewriters/TypeReferenceRewriter.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/ModLoading/Rewriters/TypeReferenceRewriter.cs b/src/SMAPI/Framework/ModLoading/Rewriters/TypeReferenceRewriter.cs index cf840dcc..62e15731 100644 --- a/src/SMAPI/Framework/ModLoading/Rewriters/TypeReferenceRewriter.cs +++ b/src/SMAPI/Framework/ModLoading/Rewriters/TypeReferenceRewriter.cs @@ -92,7 +92,7 @@ namespace StardewModdingAPI.Framework.ModLoading.Rewriters /// <param name="platformChanged">Whether the mod was compiled on a different platform.</param> public override InstructionHandleResult Handle(ModuleDefinition module, ILProcessor cil, Instruction instruction, PlatformAssemblyMap assemblyMap, bool platformChanged) { - if (!this.IsMatch(instruction) && !instruction.ToString().Contains(this.FromTypeName)) + if (!this.IsMatch(instruction)) return InstructionHandleResult.None; // field reference |