From f6c1ebeb2b7be4a9c47305607ed146003801cca7 Mon Sep 17 00:00:00 2001 From: sdburns1998 Date: Sun, 7 Jul 2019 04:21:33 +0200 Subject: [PATCH] grounditems: Use equals when comparing objects --- .../runelite/client/plugins/grounditems/GroundItemsOverlay.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))