summaryrefslogtreecommitdiff
path: root/src/SMAPI.Mods.ConsoleCommands/ModEntry.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-03 02:39:20 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-04 23:49:06 -0500
commit3744e2f1e5505c9d15fb3bc985ad147a33621048 (patch)
treecf6c6accf9024b553a1772658720f909c6c6b25f /src/SMAPI.Mods.ConsoleCommands/ModEntry.cs
parenta2a0469cd024e2fd4b35503db152ba1a6df712ec (diff)
downloadSMAPI-3744e2f1e5505c9d15fb3bc985ad147a33621048.tar.gz
SMAPI-3744e2f1e5505c9d15fb3bc985ad147a33621048.tar.bz2
SMAPI-3744e2f1e5505c9d15fb3bc985ad147a33621048.zip
add SMAPI 3.0 compatibility strict mode (#606)
Diffstat (limited to 'src/SMAPI.Mods.ConsoleCommands/ModEntry.cs')
-rw-r--r--src/SMAPI.Mods.ConsoleCommands/ModEntry.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI.Mods.ConsoleCommands/ModEntry.cs b/src/SMAPI.Mods.ConsoleCommands/ModEntry.cs
index 7588043d..30951064 100644
--- a/src/SMAPI.Mods.ConsoleCommands/ModEntry.cs
+++ b/src/SMAPI.Mods.ConsoleCommands/ModEntry.cs
@@ -29,7 +29,7 @@ namespace StardewModdingAPI.Mods.ConsoleCommands
helper.ConsoleCommands.Add(command.Name, command.Description, (name, args) => this.HandleCommand(command, name, args));
// hook events
- GameEvents.UpdateTick += this.GameEvents_UpdateTick;
+ helper.Events.GameLoop.UpdateTicked += this.OnUpdateTicked;
}
@@ -39,7 +39,7 @@ namespace StardewModdingAPI.Mods.ConsoleCommands
/// <summary>The method invoked when the game updates its state.</summary>
/// <param name="sender">The event sender.</param>
/// <param name="e">The event arguments.</param>
- private void GameEvents_UpdateTick(object sender, EventArgs e)
+ private void OnUpdateTicked(object sender, EventArgs e)
{
if (!Context.IsWorldReady)
return;