From 1ea07533bbc3e297a07304c7d69dbfc46aac627a Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Khan Date: Thu, 27 Oct 2022 13:12:41 +0530 Subject: [PATCH] Fixed minor code warnings --- stardew-access/Features/TileInfo.cs | 2 +- stardew-access/ModEntry.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/stardew-access/Features/TileInfo.cs b/stardew-access/Features/TileInfo.cs index 1ac2250..afb8b1f 100644 --- a/stardew-access/Features/TileInfo.cs +++ b/stardew-access/Features/TileInfo.cs @@ -770,7 +770,7 @@ namespace stardew_access.Features } else if (obj is IndoorPot indoorPot) { - toReturn.name = $"{obj.DisplayName}, {getHoeDirtDetail(indoorPot.hoeDirt, true)}"; + toReturn.name = $"{obj.DisplayName}, {getHoeDirtDetail(indoorPot.hoeDirt.Value, true)}"; } else if (obj is Sign sign) { diff --git a/stardew-access/ModEntry.cs b/stardew-access/ModEntry.cs index 05858f1..a6683e5 100644 --- a/stardew-access/ModEntry.cs +++ b/stardew-access/ModEntry.cs @@ -13,6 +13,7 @@ namespace stardew_access public class MainClass : Mod { #region Global Vars & Properties +#pragma warning disable CS8603 private static ModConfig? config; private Harmony? harmony; private static IMonitor? monitor; @@ -96,6 +97,7 @@ namespace stardew_access return warnings; } } +#pragma warning restore CS8603 #endregion /*********