grounditems: Null check
This commit is contained in:
@@ -352,7 +352,11 @@ public class GroundItemsOverlay extends Overlay
|
|||||||
plugin.setHighlightBoxBounds(new SimpleEntry<>(itemHighlightBox, item));
|
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
|
// Draw background if hovering
|
||||||
if (topItem && (mouseInBox || mouseInHiddenBox || mouseInHighlightBox))
|
if (topItem && (mouseInBox || mouseInHiddenBox || mouseInHighlightBox))
|
||||||
|
|||||||
Reference in New Issue
Block a user