From 05acdf4a23666d576500d5fc32479c20cad2571a Mon Sep 17 00:00:00 2001 From: Walker Selby Date: Wed, 15 Nov 2023 10:05:52 +0000 Subject: Update messages to match Hypixel Changes (#706) Fixed wrong fungi cutter mode warning not working. #706 --- .../skyhanni/features/garden/farming/WrongFungiCutterWarning.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main') 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 +} -- cgit