From ab8a42d98be0c2034af6990e41c0dd008db166af Mon Sep 17 00:00:00 2001 From: t0stiman <18124323+t0stiman@users.noreply.github.com> Date: Thu, 23 Nov 2023 13:04:06 +0100 Subject: [PATCH] no nullable --- dumb282tweaks/Main.cs | 18 +++++++++--------- dumb282tweaks/dumb282tweaks.csproj | 2 -- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/dumb282tweaks/Main.cs b/dumb282tweaks/Main.cs index c805120..2fba697 100644 --- a/dumb282tweaks/Main.cs +++ b/dumb282tweaks/Main.cs @@ -10,13 +10,13 @@ namespace dumb282tweaks; public static class Main { // Variables - [AllowNull] public static UnityModManager.ModEntry Instance { get; private set; } - [AllowNull] public static dumb282tweaksSettings Settings { get; private set; } + public static UnityModManager.ModEntry Instance { get; private set; } + public static dumb282tweaksSettings Settings { get; private set; } - public static readonly string[] cabTypeTexts = new[] { - "Default", - "German" - }; + // public static readonly string[] cabTypeTexts = new[] { + // "Default", + // "German" + // }; public static readonly string[] smokeDeflectorTypeTexts = new[] { "None", "Witte", @@ -31,9 +31,9 @@ public static class Main { // "Short", // }; - [AllowNull] public static GameObject wagnerSmokeDeflectorsLoad; - [AllowNull] public static GameObject witteSmokeDeflectorsLoad; - [AllowNull] public static GameObject streamlinedBoilerLoad; + public static GameObject wagnerSmokeDeflectorsLoad; + public static GameObject witteSmokeDeflectorsLoad; + public static GameObject streamlinedBoilerLoad; // Load private static bool Load(UnityModManager.ModEntry modEntry) { diff --git a/dumb282tweaks/dumb282tweaks.csproj b/dumb282tweaks/dumb282tweaks.csproj index f1f5184..c6498c8 100644 --- a/dumb282tweaks/dumb282tweaks.csproj +++ b/dumb282tweaks/dumb282tweaks.csproj @@ -3,7 +3,6 @@ dumb282tweaks net48 latest - enable CS8600;CS8602;CS8603 @@ -15,7 +14,6 @@ -