From 78c724f93377615303122aaa2dc40064a2cc94ec Mon Sep 17 00:00:00 2001 From: sdburns1998 Date: Sun, 7 Jul 2019 18:16:41 +0200 Subject: [PATCH] raidsthieving: Merge nested if statements --- .../client/plugins/raidsthieving/ChestOverlay.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/raidsthieving/ChestOverlay.java b/runelite-client/src/main/java/net/runelite/client/plugins/raidsthieving/ChestOverlay.java index c2f037646b..4ac35ebf47 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/raidsthieving/ChestOverlay.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/raidsthieving/ChestOverlay.java @@ -94,13 +94,10 @@ public class ChestOverlay extends Overlay if (chest != null) { - if (!plugin.isBatsFound() && !chest.isEverOpened()) + if (!plugin.isBatsFound() && !chest.isEverOpened() && shouldDrawChest(pos)) { - if (shouldDrawChest(pos)) - { - Color drawColor = new Color(setAlphaComponent(plugin.getGetPotentialBatColor().getRGB(), getChestOpacity(pos))); - drawCircleOnTrap(graphics, chest, drawColor); - } + Color drawColor = new Color(setAlphaComponent(plugin.getGetPotentialBatColor().getRGB(), getChestOpacity(pos))); + drawCircleOnTrap(graphics, chest, drawColor); } if (chest.isPoison()) {