raidsthieving: Merge nested if statements

This commit is contained in:
sdburns1998
2019-07-07 18:16:41 +02:00
parent db978d6c67
commit 78c724f933

View File

@@ -94,14 +94,11 @@ public class ChestOverlay extends Overlay
if (chest != null)
{
if (!plugin.isBatsFound() && !chest.isEverOpened())
{
if (shouldDrawChest(pos))
if (!plugin.isBatsFound() && !chest.isEverOpened() && shouldDrawChest(pos))
{
Color drawColor = new Color(setAlphaComponent(plugin.getGetPotentialBatColor().getRGB(), getChestOpacity(pos)));
drawCircleOnTrap(graphics, chest, drawColor);
}
}
if (chest.isPoison())
{
drawCircleOnTrap(graphics, chest, plugin.getGetPoisonTrapColor());