diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsOverlay.java b/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsOverlay.java index 14ff283672..82fa52a8e4 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsOverlay.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsOverlay.java @@ -352,7 +352,7 @@ public class GroundItemsOverlay extends Overlay plugin.setHighlightBoxBounds(new SimpleEntry<>(itemHighlightBox, item)); } - boolean topItem = topGroundItem == item; + boolean topItem = topGroundItem.equals(item); // Draw background if hovering if (topItem && (mouseInBox || mouseInHiddenBox || mouseInHighlightBox))