From d5a1494784e026bfff57312b0ea963d71fd49c8f Mon Sep 17 00:00:00 2001 From: joflashstudios Date: Sun, 14 Jun 2015 20:12:19 -0400 Subject: [PATCH] A bit of hud code cleanup --- src/main/java/techreborn/client/hud/ChargeHud.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/main/java/techreborn/client/hud/ChargeHud.java b/src/main/java/techreborn/client/hud/ChargeHud.java index cf87e7f04..7ef7166fc 100644 --- a/src/main/java/techreborn/client/hud/ChargeHud.java +++ b/src/main/java/techreborn/client/hud/ChargeHud.java @@ -39,12 +39,7 @@ public class ChargeHud { if (key.config.isPressed()) { - if (showHud) - { - showHud = false; - } - else if (showHud == false) - showHud = true; + showHud = !showHud; } if (event.isCancelable() || event.type != ElementType.ALL) @@ -59,7 +54,7 @@ public class ChargeHud EntityPlayer player = mc.thePlayer; ItemStack stack = player.getCurrentArmor(2); ItemStack stack2 = mc.thePlayer.inventory.getCurrentItem(); - if (showHud == true) + if (showHud) { if(stack2 != null) {