A bit of hud code cleanup

This commit is contained in:
joflashstudios 2015-06-14 20:12:19 -04:00
parent 03e252ef84
commit d5a1494784

View file

@ -39,12 +39,7 @@ public class ChargeHud
{ {
if (key.config.isPressed()) if (key.config.isPressed())
{ {
if (showHud) showHud = !showHud;
{
showHud = false;
}
else if (showHud == false)
showHud = true;
} }
if (event.isCancelable() || event.type != ElementType.ALL) if (event.isCancelable() || event.type != ElementType.ALL)
@ -59,7 +54,7 @@ public class ChargeHud
EntityPlayer player = mc.thePlayer; EntityPlayer player = mc.thePlayer;
ItemStack stack = player.getCurrentArmor(2); ItemStack stack = player.getCurrentArmor(2);
ItemStack stack2 = mc.thePlayer.inventory.getCurrentItem(); ItemStack stack2 = mc.thePlayer.inventory.getCurrentItem();
if (showHud == true) if (showHud)
{ {
if(stack2 != null) if(stack2 != null)
{ {