From 6acfd313e8493d9e0208a06f17db96db8b5d38e5 Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Date: Tue, 10 May 2022 20:05:02 +0530 Subject: [PATCH] Added quartz, etc. to mine item category --- stardew-access/Features/TileInfo.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/stardew-access/Features/TileInfo.cs b/stardew-access/Features/TileInfo.cs index 797e00f..df206ab 100644 --- a/stardew-access/Features/TileInfo.cs +++ b/stardew-access/Features/TileInfo.cs @@ -562,11 +562,6 @@ namespace stardew_access.Features category = CATEGORY.Trees; toReturn = getTree((Tree)terrain.Get()); } - else if (terrain.Get() is Quartz) - { - category = CATEGORY.MineItems; - toReturn = "Quartz"; - } return (toReturn, category); } @@ -674,6 +669,12 @@ namespace stardew_access.Features toReturn.category = CATEGORY.Debris; else if (obj.name.ToLower().Equals("twig")) toReturn.category = CATEGORY.Debris; + else if (obj.name.ToLower().Contains("quartz")) + toReturn.category = CATEGORY.MineItems; + else if (obj.name.ToLower().Contains("earth crystal")) + toReturn.category = CATEGORY.MineItems; + else if (obj.name.ToLower().Contains("frozen tear")) + toReturn.category = CATEGORY.MineItems; else if (obj is Chest) { Chest chest = (Chest)obj;