summaryrefslogtreecommitdiff
path: root/src/SMAPI
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI')
-rw-r--r--src/SMAPI/Framework/SCore.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs
index 41b975e8..5ae4fdbb 100644
--- a/src/SMAPI/Framework/SCore.cs
+++ b/src/SMAPI/Framework/SCore.cs
@@ -960,8 +960,14 @@ namespace StardewModdingAPI.Framework
}
// raise time changed
- if (raiseWorldEvents && state.Time.IsChanged && events.TimeChanged.HasListeners)
- events.TimeChanged.Raise(new TimeChangedEventArgs(state.Time.Old, state.Time.New));
+ if (raiseWorldEvents && state.Time.IsChanged)
+ {
+ if (verbose)
+ this.Monitor.Log($"Context: time changed to {state.Time.New}.");
+
+ if (events.TimeChanged.HasListeners)
+ events.TimeChanged.Raise(new TimeChangedEventArgs(state.Time.Old, state.Time.New));
+ }
// raise player events
if (raiseWorldEvents)