aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorWalker Selby <git@walkerselby.com>2023-11-15 10:05:52 +0000
committerGitHub <noreply@github.com>2023-11-15 11:05:52 +0100
commit05acdf4a23666d576500d5fc32479c20cad2571a (patch)
tree00af9608f20b753c04e6072a53369df9cc1aa86b /src/main/java
parentbcc712b14495015d5a0d53cb54355b379e32f000 (diff)
downloadskyhanni-05acdf4a23666d576500d5fc32479c20cad2571a.tar.gz
skyhanni-05acdf4a23666d576500d5fc32479c20cad2571a.tar.bz2
skyhanni-05acdf4a23666d576500d5fc32479c20cad2571a.zip
Update messages to match Hypixel Changes (#706)
Fixed wrong fungi cutter mode warning not working. #706
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/WrongFungiCutterWarning.kt7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/WrongFungiCutterWarning.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/WrongFungiCutterWarning.kt
index 46936a7bb..03a48d820 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/WrongFungiCutterWarning.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/WrongFungiCutterWarning.kt
@@ -23,7 +23,7 @@ class WrongFungiCutterWarning {
if (message == "§eFungi Cutter Mode: §r§cRed Mushrooms") {
mode = FungiMode.RED
}
- if (message == "§eFungi Cutter Mode: §r§cBrown Mushrooms") {
+ if (message == "§eFungi Cutter Mode: §r§6Brown Mushrooms") {
mode = FungiMode.BROWN
}
}
@@ -62,12 +62,13 @@ class WrongFungiCutterWarning {
}
private fun readItem(item: ItemStack) {
+ // TODO Update to use NBT data: fungi_cutter_mode: "BROWN"
for (line in item.getLore()) {
if (line == "§eMode: §cRed Mushrooms") {
mode = FungiMode.RED
}
- if (line == "§eMode: §cBrown Mushrooms") {
+ if (line == "§eMode: §6Brown Mushrooms") {
mode = FungiMode.BROWN
}
}
@@ -78,4 +79,4 @@ class WrongFungiCutterWarning {
BROWN,
UNKNOWN
}
-} \ No newline at end of file
+}