summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2016-11-04 20:24:21 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2016-11-04 20:24:21 -0400
commit1fa4551b1d102a464da12c7c57af737d107619b9 (patch)
tree26e57cd1aff63ca2ad8452632612056e9e5c6c74 /src/StardewModdingAPI
parent83f129aa169d3cc32f142951843df5d40d1c0f43 (diff)
downloadSMAPI-1fa4551b1d102a464da12c7c57af737d107619b9.tar.gz
SMAPI-1fa4551b1d102a464da12c7c57af737d107619b9.tar.bz2
SMAPI-1fa4551b1d102a464da12c7c57af737d107619b9.zip
minor cleanup
Diffstat (limited to 'src/StardewModdingAPI')
-rw-r--r--src/StardewModdingAPI/Events/EventArgsMouseStateChanged.cs1
-rw-r--r--src/StardewModdingAPI/Inheritance/SGame.cs2
-rw-r--r--src/StardewModdingAPI/Manifest.cs2
3 files changed, 2 insertions, 3 deletions
diff --git a/src/StardewModdingAPI/Events/EventArgsMouseStateChanged.cs b/src/StardewModdingAPI/Events/EventArgsMouseStateChanged.cs
index 0997ad18..a589e29d 100644
--- a/src/StardewModdingAPI/Events/EventArgsMouseStateChanged.cs
+++ b/src/StardewModdingAPI/Events/EventArgsMouseStateChanged.cs
@@ -1,7 +1,6 @@
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
-using StardewValley;
namespace StardewModdingAPI.Events
{
diff --git a/src/StardewModdingAPI/Inheritance/SGame.cs b/src/StardewModdingAPI/Inheritance/SGame.cs
index bd6a3491..5ffb388e 100644
--- a/src/StardewModdingAPI/Inheritance/SGame.cs
+++ b/src/StardewModdingAPI/Inheritance/SGame.cs
@@ -949,7 +949,7 @@ namespace StardewModdingAPI.Inheritance
if (objectHash != null && this.PreviousLocationObjects != objectHash)
{
LocationEvents.InvokeOnNewLocationObject(Game1.currentLocation.objects);
- this.PreviousLocationObjects = objectHash ?? -1;
+ this.PreviousLocationObjects = objectHash.Value;
}
// raise time changed
diff --git a/src/StardewModdingAPI/Manifest.cs b/src/StardewModdingAPI/Manifest.cs
index 6b1fe650..dc8a2f7b 100644
--- a/src/StardewModdingAPI/Manifest.cs
+++ b/src/StardewModdingAPI/Manifest.cs
@@ -66,7 +66,7 @@ namespace StardewModdingAPI
{
try
{
- Manifest m = JsonConvert.DeserializeObject<Manifest>(File.ReadAllText(this.ConfigLocation));
+ JsonConvert.DeserializeObject<Manifest>(File.ReadAllText(this.ConfigLocation));
}
catch
{