diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2016-11-01 02:00:29 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2016-11-01 02:00:29 -0400 |
commit | 493696690ae0c52fcd77590b1040b28ebb4cdf77 (patch) | |
tree | 2533d854536a241f60a142dc52a1e26f8e2586e8 /src/StardewModdingAPI/Manifest.cs | |
parent | 9ab5831eac4ee221f9dcdc645f1b706298426638 (diff) | |
download | SMAPI-493696690ae0c52fcd77590b1040b28ebb4cdf77.tar.gz SMAPI-493696690ae0c52fcd77590b1040b28ebb4cdf77.tar.bz2 SMAPI-493696690ae0c52fcd77590b1040b28ebb4cdf77.zip |
fix spelling of 'Authour' manifest field with backwards compatibility (#158)
Diffstat (limited to 'src/StardewModdingAPI/Manifest.cs')
-rw-r--r-- | src/StardewModdingAPI/Manifest.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/StardewModdingAPI/Manifest.cs b/src/StardewModdingAPI/Manifest.cs index ed43ab7d..6b1fe650 100644 --- a/src/StardewModdingAPI/Manifest.cs +++ b/src/StardewModdingAPI/Manifest.cs @@ -16,7 +16,15 @@ namespace StardewModdingAPI public virtual string Name { get; set; } /// <summary>The mod author's name.</summary> - public virtual string Authour { get; set; } + public virtual string Author { get; set; } + + /// <summary>Obsolete.</summary> + [Obsolete("Use 'Author'.")] + public virtual string Authour + { + get { return this.Author; } + set { this.Author = value; } + } /// <summary>The mod version.</summary> public virtual Version Version { get; set; } @@ -41,7 +49,7 @@ namespace StardewModdingAPI public override T GenerateDefaultConfig<T>() { this.Name = ""; - this.Authour = ""; + this.Author = ""; this.Version = new Version(0, 0, 0, ""); this.Description = ""; this.UniqueID = Guid.NewGuid().ToString(); |