From 672f9a1f007539168490f50a3cd239b56ac8d5b0 Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Date: Tue, 10 May 2022 19:39:22 +0530 Subject: [PATCH] Added twig to debris category --- stardew-access/Features/TileInfo.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/stardew-access/Features/TileInfo.cs b/stardew-access/Features/TileInfo.cs index 944434c..797e00f 100644 --- a/stardew-access/Features/TileInfo.cs +++ b/stardew-access/Features/TileInfo.cs @@ -667,13 +667,14 @@ namespace stardew_access.Features // Get object names based on index (string? name, CATEGORY category) correctNameAndCategory = getCorrectNameAndCategoryFromIndex(index); + if (correctNameAndCategory.name != null) toReturn = correctNameAndCategory; - - if (toReturn.name.ToLower().Equals("stone")) // Fix for `Busy stone` + else if (obj.name.ToLower().Equals("stone")) toReturn.category = CATEGORY.Debris; - - if (obj is Chest) + else if (obj.name.ToLower().Equals("twig")) + toReturn.category = CATEGORY.Debris; + else if (obj is Chest) { Chest chest = (Chest)obj; toReturn = (chest.DisplayName, CATEGORY.Chests);