summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/UpdateTickedEventArgs.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-30 16:56:35 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-30 16:56:35 -0500
commitb3b1b143baf99673f42b65ef7d84e4135bfc6d48 (patch)
tree433956908b4173c9ab4b6ddf25663d5cbcfe00f9 /src/SMAPI/Events/UpdateTickedEventArgs.cs
parentf046091fe637963fd6a8cc8c1324daf81b64899f (diff)
downloadSMAPI-b3b1b143baf99673f42b65ef7d84e4135bfc6d48.tar.gz
SMAPI-b3b1b143baf99673f42b65ef7d84e4135bfc6d48.tar.bz2
SMAPI-b3b1b143baf99673f42b65ef7d84e4135bfc6d48.zip
fix GameLaunched raised twice due to Game1.ticks not incrementing reliably
Diffstat (limited to 'src/SMAPI/Events/UpdateTickedEventArgs.cs')
-rw-r--r--src/SMAPI/Events/UpdateTickedEventArgs.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SMAPI/Events/UpdateTickedEventArgs.cs b/src/SMAPI/Events/UpdateTickedEventArgs.cs
index aa710b44..4f3329ac 100644
--- a/src/SMAPI/Events/UpdateTickedEventArgs.cs
+++ b/src/SMAPI/Events/UpdateTickedEventArgs.cs
@@ -1,5 +1,5 @@
using System;
-using StardewValley;
+using StardewModdingAPI.Framework;
namespace StardewModdingAPI.Events
{
@@ -10,10 +10,10 @@ namespace StardewModdingAPI.Events
** Accessors
*********/
/// <summary>The number of ticks elapsed since the game started, including the current tick.</summary>
- public uint Ticks => (uint)Game1.ticks;
+ public uint Ticks => SGame.TicksElapsed;
/// <summary>Whether <see cref="Ticks"/> is a multiple of 60, which happens approximately once per second.</summary>
- public bool IsOneSecond => Game1.ticks % 60 == 0;
+ public bool IsOneSecond => this.Ticks % 60 == 0;
/*********