Added twig to debris category

master
Mohammad Shoaib 2022-05-10 19:39:22 +05:30
parent 730beeffaa
commit 672f9a1f00
1 changed files with 5 additions and 4 deletions

View File

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