aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-11 02:45:38 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-11 02:45:38 +0200
commit5d1bc5e15e7e71c91954154a1c1d1db42651f933 (patch)
tree84184edf4fb7e18b41a36d6e7118a7558d3b2242 /src/main/java/at/hannibal2/skyhanni/features
parent04cfe48dbbc58da81c8390dfb20216a7258cba3e (diff)
downloadskyhanni-5d1bc5e15e7e71c91954154a1c1d1db42651f933.tar.gz
skyhanni-5d1bc5e15e7e71c91954154a1c1d1db42651f933.tar.bz2
skyhanni-5d1bc5e15e7e71c91954154a1c1d1db42651f933.zip
Add support for more garden tools
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenAPI.kt16
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)