tileindicators: Merge nested if statements
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user