From 4dcef714fa77b85bab35f49393edc5c24b5ba560 Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Date: Sun, 15 May 2022 12:30:52 +0530 Subject: [PATCH] Fixed warning --- stardew-access/Features/TileInfo.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stardew-access/Features/TileInfo.cs b/stardew-access/Features/TileInfo.cs index 70c1ece..4c161f9 100644 --- a/stardew-access/Features/TileInfo.cs +++ b/stardew-access/Features/TileInfo.cs @@ -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(beach, "oldMariner").GetValue() is NPC mariner && mariner.getTileLocation() == new Vector2(x, y)) { return (CATEGORY.NPCs, "Old Mariner");