tileindicators: Merge nested if statements

This commit is contained in:
sdburns1998
2019-07-07 21:44:22 +02:00
parent 99ea565d0a
commit f9c6cd2670

View File

@@ -59,13 +59,11 @@ public class TileIndicatorsOverlay extends Overlay
@Override @Override
public Dimension render(Graphics2D graphics) public Dimension render(Graphics2D graphics)
{ {
if (plugin.isHighlightHoveredTile()) if (plugin.isHighlightHoveredTile() &&
{
// If we have tile "selected" render it // If we have tile "selected" render it
if (client.getSelectedSceneTile() != null) client.getSelectedSceneTile() != null)
{ {
renderTile(graphics, client.getSelectedSceneTile().getLocalLocation(), plugin.getHighlightHoveredColor()); renderTile(graphics, client.getSelectedSceneTile().getLocalLocation(), plugin.getHighlightHoveredColor());
}
} }
if (plugin.isHighlightDestinationTile()) if (plugin.isHighlightDestinationTile())