warindicators: Merge nested if statements
This commit is contained in:
@@ -68,13 +68,10 @@ public class WarIndicatorMiniMapOverlay extends Overlay
|
||||
String[] callers = plugin.getGetActiveCallers().split(", ");
|
||||
String[] targets = plugin.getGetTargetedSnipes().split(", ");
|
||||
|
||||
if (plugin.isCallerMinimap() && ArrayUtils.contains(callers, actor.getName()))
|
||||
{
|
||||
if (minimapLocation != null)
|
||||
if (plugin.isCallerMinimap() && ArrayUtils.contains(callers, actor.getName()) && minimapLocation != null)
|
||||
{
|
||||
OverlayUtil.renderTextLocation(graphics, minimapLocation, name, color);
|
||||
}
|
||||
}
|
||||
|
||||
if (plugin.isSnipeMinimap() && ArrayUtils.contains(targets, actor.getName()))
|
||||
{
|
||||
|
||||
@@ -73,21 +73,15 @@ public class WarIndicatorOverlay extends Overlay
|
||||
String[] callers = plugin.getGetActiveCallers().split(", ");
|
||||
String[] targets = plugin.getGetTargetedSnipes().split(", ");
|
||||
|
||||
if (plugin.isCallerTile() && ArrayUtils.contains(callers, actor.getName()))
|
||||
{
|
||||
if (poly != null)
|
||||
if (plugin.isCallerTile() && ArrayUtils.contains(callers, actor.getName()) && poly != null)
|
||||
{
|
||||
OverlayUtil.renderPolygon(graphics, poly, color);
|
||||
}
|
||||
}
|
||||
|
||||
if (plugin.isSnipeTile() && ArrayUtils.contains(targets, actor.getName()))
|
||||
{
|
||||
if (poly != null)
|
||||
if (plugin.isSnipeTile() && ArrayUtils.contains(targets, actor.getName()) && poly != null)
|
||||
{
|
||||
OverlayUtil.renderPolygon(graphics, poly, color);
|
||||
}
|
||||
}
|
||||
|
||||
String name = actor.getName().replace('\u00A0', ' ');
|
||||
int offset = actor.getLogicalHeight() + 40;
|
||||
|
||||
Reference in New Issue
Block a user