grounditems: Use equals when comparing objects
This commit is contained in:
@@ -352,7 +352,7 @@ public class GroundItemsOverlay extends Overlay
|
|||||||
plugin.setHighlightBoxBounds(new SimpleEntry<>(itemHighlightBox, item));
|
plugin.setHighlightBoxBounds(new SimpleEntry<>(itemHighlightBox, item));
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean topItem = topGroundItem == item;
|
boolean topItem = topGroundItem.equals(item);
|
||||||
|
|
||||||
// Draw background if hovering
|
// Draw background if hovering
|
||||||
if (topItem && (mouseInBox || mouseInHiddenBox || mouseInHighlightBox))
|
if (topItem && (mouseInBox || mouseInHiddenBox || mouseInHighlightBox))
|
||||||
|
|||||||
Reference in New Issue
Block a user