A bit of hud code cleanup
This commit is contained in:
parent
03e252ef84
commit
d5a1494784
1 changed files with 2 additions and 7 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue