summaryrefslogtreecommitdiff
path: root/src/SMAPI/Patches/Game1Patcher.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-13 20:24:14 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-13 20:24:14 -0400
commitf39da383a17b368e92fd243cf155b27ba42671f3 (patch)
tree56c215dfb34da270a7714afd141e76a94c69a2c0 /src/SMAPI/Patches/Game1Patcher.cs
parent6e9e8aef1ef97e1a4ef4410ce300cb1c47eca986 (diff)
downloadSMAPI-f39da383a17b368e92fd243cf155b27ba42671f3.tar.gz
SMAPI-f39da383a17b368e92fd243cf155b27ba42671f3.tar.bz2
SMAPI-f39da383a17b368e92fd243cf155b27ba42671f3.zip
enable nullable annotations in SMAPI where no logic changes are needed (#837)
Diffstat (limited to 'src/SMAPI/Patches/Game1Patcher.cs')
-rw-r--r--src/SMAPI/Patches/Game1Patcher.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/SMAPI/Patches/Game1Patcher.cs b/src/SMAPI/Patches/Game1Patcher.cs
index c5d98e9e..8f806790 100644
--- a/src/SMAPI/Patches/Game1Patcher.cs
+++ b/src/SMAPI/Patches/Game1Patcher.cs
@@ -1,5 +1,3 @@
-#nullable disable
-
using System;
using System.Diagnostics.CodeAnalysis;
using HarmonyLib;
@@ -22,10 +20,10 @@ namespace StardewModdingAPI.Patches
** Fields
*********/
/// <summary>Simplifies access to private code.</summary>
- private static Reflector Reflection;
+ private static Reflector Reflection = null!; // initialized in constructor
/// <summary>A callback to invoke when the load stage changes.</summary>
- private static Action<LoadStage> OnStageChanged;
+ private static Action<LoadStage> OnStageChanged = null!; // initialized in constructor
/// <summary>Whether the game is running running the code in <see cref="Game1.loadForNewGame"/>.</summary>
private static bool IsInLoadForNewGame;