From d309844b28b91c136e1f938057884f7cdf2b56e0 Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Khan Date: Sun, 14 Aug 2022 20:19:09 +0530 Subject: [PATCH] Removed unnecessary code --- stardew-access/Features/TileInfo.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/stardew-access/Features/TileInfo.cs b/stardew-access/Features/TileInfo.cs index 64df1c7..f7ec8f6 100644 --- a/stardew-access/Features/TileInfo.cs +++ b/stardew-access/Features/TileInfo.cs @@ -252,7 +252,7 @@ namespace stardew_access.Features return false; } - public static string? getFarmAnimalAt(GameLocation? location, int x, int y, bool onlyName = false) + public static string? getFarmAnimalAt(GameLocation? location, int x, int y) { if (location == null) return null; @@ -281,9 +281,6 @@ namespace stardew_access.Features int age = farmAnimals[i].age.Value; string type = farmAnimals[i].displayType; - if (onlyName) - return name; - return $"{name}, {type}, age {age}"; } }