raids: Merge nested if statements
This commit is contained in:
@@ -325,12 +325,9 @@ public class RaidsOverlay extends Overlay
|
|||||||
|
|
||||||
String bossName = room.getBoss().getName();
|
String bossName = room.getBoss().getName();
|
||||||
String bossNameLC = bossName.toLowerCase();
|
String bossNameLC = bossName.toLowerCase();
|
||||||
if (plugin.isShowRecommendedItems())
|
if (plugin.isShowRecommendedItems() && plugin.getRecommendedItemsList().get(bossNameLC) != null)
|
||||||
{
|
{
|
||||||
if (plugin.getRecommendedItemsList().get(bossNameLC) != null)
|
imageIds.addAll(plugin.getRecommendedItemsList().get(bossNameLC));
|
||||||
{
|
|
||||||
imageIds.addAll(plugin.getRecommendedItemsList().get(bossNameLC));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tableComponent.addRow(plugin.isShowRecommendedItems() ? "" : room.getType().getName(), ColorUtil.prependColorTag(bossName, color));
|
tableComponent.addRow(plugin.isShowRecommendedItems() ? "" : room.getType().getName(), ColorUtil.prependColorTag(bossName, color));
|
||||||
|
|||||||
@@ -1218,12 +1218,10 @@ public class RaidsPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
if (raid.getRotationString().toLowerCase().equals("vasa,tekton,vespula")
|
if (raid.getRotationString().toLowerCase().equals("vasa,tekton,vespula")
|
||||||
&& raid.getFullRotationString().toLowerCase().contains("crabs")
|
&& raid.getFullRotationString().toLowerCase().contains("crabs")
|
||||||
&& raid.getFullRotationString().toLowerCase().contains("tightrope"))
|
&& raid.getFullRotationString().toLowerCase().contains("tightrope")
|
||||||
|
&& goodCrabs != null)
|
||||||
{
|
{
|
||||||
if (goodCrabs != null)
|
return goodCrabs;
|
||||||
{
|
|
||||||
return goodCrabs;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user