diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt index 086c31d66..c7df35877 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt @@ -67,7 +67,21 @@ class GardenAPI { if (crop != null) return crop.cropName val internalName = toolItem?.getInternalName() ?: return null - return if (internalName.startsWith("DAEDALUS_AXE")) "Other Tool" else null + return if (isOtherTool(internalName)) internalName else null + } + + private fun isOtherTool(internalName: String): Boolean { + if (internalName.startsWith("DAEDALUS_AXE")) return true + + if (internalName.startsWith("BASIC_GARDENING_HOE")) return true + if (internalName.startsWith("ADVANCED_GARDENING_AXE")) return true + + if (internalName.startsWith("BASIC_GARDENING_AXE")) return true + if (internalName.startsWith("ADVANCED_GARDENING_HOE")) return true + + if (internalName.startsWith("ROOKIE_HOE")) return true + + return false } @SubscribeEvent(priority = EventPriority.LOW) |