From f2d607484e36e68adc8fb00c9aa31e2a42fc7c0f Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Khan Date: Sun, 14 Aug 2022 19:50:53 +0530 Subject: [PATCH] Issue#27 Added mill input and output tiles detection --- stardew-access/Features/TileInfo.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stardew-access/Features/TileInfo.cs b/stardew-access/Features/TileInfo.cs index 240572c..1d7a033 100644 --- a/stardew-access/Features/TileInfo.cs +++ b/stardew-access/Features/TileInfo.cs @@ -321,6 +321,10 @@ namespace stardew_access.Features return (CATEGORY.Doors, name + " Animal Door " + ((building.animalDoorOpen.Value) ? "Opened" : "Closed")); else if (building.tileX.Value == x && building.tileY.Value == y) return (CATEGORY.Buildings, name); + else if (building is Mill && (building.tileX.Value + 1) == x && (building.tileY.Value + 1) == y) + return (CATEGORY.Buildings, name + " input"); + else if (building is Mill && (building.tileX.Value + 3) == x && (building.tileY.Value + 1) == y) + return (CATEGORY.Buildings, name + " output"); else if (!lessInfo) return (CATEGORY.Buildings, name); }