From 0d2c75fb0c53768b1f9b887c9a9048390550f767 Mon Sep 17 00:00:00 2001 From: Rime <81419447+Emirlol@users.noreply.github.com> Date: Fri, 31 May 2024 05:09:07 +0300 Subject: [PATCH] Fix stray rabbit highlight not working on slot 26 and golden rabbits not being highlighted (#741) --- .../skyblock/chocolatefactory/ChocolateFactorySolver.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/hysky/skyblocker/skyblock/chocolatefactory/ChocolateFactorySolver.java b/src/main/java/de/hysky/skyblocker/skyblock/chocolatefactory/ChocolateFactorySolver.java index 2662b8e1a5..e04e632a07 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/chocolatefactory/ChocolateFactorySolver.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/chocolatefactory/ChocolateFactorySolver.java @@ -345,9 +345,11 @@ private static Optional getPrestigeHighlight() { private static List getStrayRabbitHighlight(Int2ObjectMap slots) { final List highlights = new ArrayList<>(); - for (byte i = STRAY_RABBIT_START; i < STRAY_RABBIT_END; i++) { + for (byte i = STRAY_RABBIT_START; i <= STRAY_RABBIT_END; i++) { ItemStack item = slots.get(i); - if (item.isOf(Items.PLAYER_HEAD) && item.getName().getString().equals("CLICK ME!")) { + if (!item.isOf(Items.PLAYER_HEAD)) continue; + String name = item.getName().getString(); + if (name.equals("CLICK ME!") || name.startsWith("GOLDEN RABBIT")) { highlights.add(ColorHighlight.green(i)); } }