summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Events
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2016-10-31 16:19:45 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2016-10-31 16:19:45 -0400
commit652776ed022f558321ce7e16407c31c6f4c057a5 (patch)
tree05c5cf7047c692af77603818069e43a5234d9540 /src/StardewModdingAPI/Events
parent1fde49dd7ee7c1160a0e5c438125f14f9a904145 (diff)
downloadSMAPI-652776ed022f558321ce7e16407c31c6f4c057a5.tar.gz
SMAPI-652776ed022f558321ce7e16407c31c6f4c057a5.tar.bz2
SMAPI-652776ed022f558321ce7e16407c31c6f4c057a5.zip
(#129) fix several events not correctly propagating state
Diffstat (limited to 'src/StardewModdingAPI/Events')
-rw-r--r--src/StardewModdingAPI/Events/EventArgsFarmerChanged.cs4
-rw-r--r--src/StardewModdingAPI/Events/EventArgsIntChanged.cs4
-rw-r--r--src/StardewModdingAPI/Events/EventArgsKeyboardStateChanged.cs2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/StardewModdingAPI/Events/EventArgsFarmerChanged.cs b/src/StardewModdingAPI/Events/EventArgsFarmerChanged.cs
index ba8794b7..273f9d25 100644
--- a/src/StardewModdingAPI/Events/EventArgsFarmerChanged.cs
+++ b/src/StardewModdingAPI/Events/EventArgsFarmerChanged.cs
@@ -24,8 +24,8 @@ namespace StardewModdingAPI.Events
/// <param name="newFarmer">The new player character.</param>
public EventArgsFarmerChanged(Farmer priorFarmer, Farmer newFarmer)
{
- this.NewFarmer = NewFarmer;
- this.PriorFarmer = PriorFarmer;
+ this.PriorFarmer = priorFarmer;
+ this.NewFarmer = newFarmer;
}
}
}
diff --git a/src/StardewModdingAPI/Events/EventArgsIntChanged.cs b/src/StardewModdingAPI/Events/EventArgsIntChanged.cs
index 0ccb9b87..31079730 100644
--- a/src/StardewModdingAPI/Events/EventArgsIntChanged.cs
+++ b/src/StardewModdingAPI/Events/EventArgsIntChanged.cs
@@ -23,8 +23,8 @@ namespace StardewModdingAPI.Events
/// <param name="newInt">The current value.</param>
public EventArgsIntChanged(int priorInt, int newInt)
{
- this.NewInt = NewInt;
- this.PriorInt = PriorInt;
+ this.PriorInt = priorInt;
+ this.NewInt = newInt;
}
}
}
diff --git a/src/StardewModdingAPI/Events/EventArgsKeyboardStateChanged.cs b/src/StardewModdingAPI/Events/EventArgsKeyboardStateChanged.cs
index 42daa4db..2e314731 100644
--- a/src/StardewModdingAPI/Events/EventArgsKeyboardStateChanged.cs
+++ b/src/StardewModdingAPI/Events/EventArgsKeyboardStateChanged.cs
@@ -24,7 +24,7 @@ namespace StardewModdingAPI.Events
/// <param name="newState">The current keyboard state.</param>
public EventArgsKeyboardStateChanged(KeyboardState priorState, KeyboardState newState)
{
- this.NewState = newState;
+ this.PriorState = priorState;
this.NewState = newState;
}
}