File tree 1 file changed +4
-2
lines changed
src/main/java/de/hysky/skyblocker/skyblock/chocolatefactory
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -345,9 +345,11 @@ private static Optional<ColorHighlight> getPrestigeHighlight() {
345
345
346
346
private static List <ColorHighlight > getStrayRabbitHighlight (Int2ObjectMap <ItemStack > slots ) {
347
347
final List <ColorHighlight > highlights = new ArrayList <>();
348
- for (byte i = STRAY_RABBIT_START ; i < STRAY_RABBIT_END ; i ++) {
348
+ for (byte i = STRAY_RABBIT_START ; i <= STRAY_RABBIT_END ; i ++) {
349
349
ItemStack item = slots .get (i );
350
- if (item .isOf (Items .PLAYER_HEAD ) && item .getName ().getString ().equals ("CLICK ME!" )) {
350
+ if (!item .isOf (Items .PLAYER_HEAD )) continue ;
351
+ String name = item .getName ().getString ();
352
+ if (name .equals ("CLICK ME!" ) || name .startsWith ("GOLDEN RABBIT" )) {
351
353
highlights .add (ColorHighlight .green (i ));
352
354
}
353
355
}
You can’t perform that action at this time.
0 commit comments