diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-09-02 19:19:13 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-09-02 19:19:13 -0400 |
commit | c94f3e7c63a2f1aec89c68417db348d4e684fb79 (patch) | |
tree | 6cf32c93b43e0852352b493070d7f4812e236a96 /src/StardewModdingAPI.Toolkit/Framework/UpdateData | |
parent | 093117d777a84e3f1e3aaa8a1337059fb805a7dd (diff) | |
download | SMAPI-c94f3e7c63a2f1aec89c68417db348d4e684fb79.tar.gz SMAPI-c94f3e7c63a2f1aec89c68417db348d4e684fb79.tar.bz2 SMAPI-c94f3e7c63a2f1aec89c68417db348d4e684fb79.zip |
only use valid update keys in update-check logic (#592)
Diffstat (limited to 'src/StardewModdingAPI.Toolkit/Framework/UpdateData')
-rw-r--r-- | src/StardewModdingAPI.Toolkit/Framework/UpdateData/UpdateKey.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/StardewModdingAPI.Toolkit/Framework/UpdateData/UpdateKey.cs b/src/StardewModdingAPI.Toolkit/Framework/UpdateData/UpdateKey.cs index 49b7a272..865ebcf7 100644 --- a/src/StardewModdingAPI.Toolkit/Framework/UpdateData/UpdateKey.cs +++ b/src/StardewModdingAPI.Toolkit/Framework/UpdateData/UpdateKey.cs @@ -61,5 +61,13 @@ namespace StardewModdingAPI.Toolkit.Framework.UpdateData return new UpdateKey(raw, repository, id); } + + /// <summary>Get a string that represents the current object.</summary> + public override string ToString() + { + return this.LooksValid + ? $"{this.Repository}:{this.ID}" + : this.RawText; + } } } |