grotesqueguardians: Merge nested if statements

This commit is contained in:
sdburns1998
2019-07-07 04:19:28 +02:00
parent 9e802c2688
commit 9ea7287713

View File

@@ -99,9 +99,7 @@ class GrotesqueGuardiansOverlay extends Overlay
{
OverlayUtil.renderPolygon(graphics, poly, color);
}
if ((plugin.isInGargs()) && (plugin.isNeedingToRun()))
{
if ((plugin.getDusk() != null) && (plugin.getDusk().getLocalLocation() != null))
if (plugin.isInGargs() && plugin.isNeedingToRun() && plugin.getDusk() != null && plugin.getDusk().getLocalLocation() != null)
{
TextComponent textComponent = new TextComponent();
LocalPoint duskPoint;
@@ -117,7 +115,6 @@ class GrotesqueGuardiansOverlay extends Overlay
}
}
}
}
return null;
}
}