Fixed warning

master
Mohammad Shoaib 2022-05-15 12:30:52 +05:30
parent 373a39fa33
commit 4dcef714fa
1 changed files with 3 additions and 0 deletions

View File

@ -411,6 +411,9 @@ namespace stardew_access.Features
}
else if (Game1.currentLocation is Beach beach)
{
if (MainClass.ModHelper == null)
return (null, null);
if (MainClass.ModHelper.Reflection.GetField<NPC>(beach, "oldMariner").GetValue() is NPC mariner && mariner.getTileLocation() == new Vector2(x, y))
{
return (CATEGORY.NPCs, "Old Mariner");