Fixed minor code warnings

master
Mohammad Shoaib Khan 2022-10-27 13:12:41 +05:30
parent f2ba3e8793
commit 1ea07533bb
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -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)
{

View File

@ -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
/*********