grounditems: Null check

This commit is contained in:
sdburns1998
2019-07-07 05:18:07 +02:00
parent 9fdb02e635
commit 246f15506e

View File

@@ -352,7 +352,11 @@ public class GroundItemsOverlay extends Overlay
plugin.setHighlightBoxBounds(new SimpleEntry<>(itemHighlightBox, item));
}
boolean topItem = topGroundItem.equals(item);
boolean topItem = false;
if (topGroundItem != null)
{
topItem = topGroundItem.equals(item);
}
// Draw background if hovering
if (topItem && (mouseInBox || mouseInHiddenBox || mouseInHighlightBox))