summaryrefslogtreecommitdiff
path: root/src/SMAPI/Mod.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Mod.cs')
-rw-r--r--src/SMAPI/Mod.cs12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/SMAPI/Mod.cs b/src/SMAPI/Mod.cs
index 2b3750d5..cffe2998 100644
--- a/src/SMAPI/Mod.cs
+++ b/src/SMAPI/Mod.cs
@@ -1,5 +1,3 @@
-#nullable disable
-
using System;
namespace StardewModdingAPI
@@ -11,13 +9,13 @@ namespace StardewModdingAPI
** Accessors
*********/
/// <inheritdoc />
- public IModHelper Helper { get; internal set; }
+ public IModHelper Helper { get; internal set; } = null!;
/// <inheritdoc />
- public IMonitor Monitor { get; internal set; }
+ public IMonitor Monitor { get; internal set; } = null!;
/// <inheritdoc />
- public IManifest ModManifest { get; internal set; }
+ public IManifest ModManifest { get; internal set; } = null!;
/*********
@@ -27,7 +25,7 @@ namespace StardewModdingAPI
public abstract void Entry(IModHelper helper);
/// <inheritdoc />
- public virtual object GetApi()
+ public virtual object? GetApi()
{
return null;
}
@@ -35,7 +33,7 @@ namespace StardewModdingAPI
/// <summary>Release or reset unmanaged resources.</summary>
public void Dispose()
{
- (this.Helper as IDisposable)?.Dispose(); // deliberate do this outside overridable dispose method so mods don't accidentally suppress it
+ (this.Helper as IDisposable)?.Dispose(); // deliberately do this outside overridable dispose method so mods don't accidentally suppress it
this.Dispose(true);
GC.SuppressFinalize(this);
}