Added config for ChargeHud

This commit is contained in:
Gig 2015-06-14 13:45:41 +01:00
parent afdbe69d18
commit 0ac115b0e1
2 changed files with 14 additions and 1 deletions
src/main/java/techreborn/client/hud

View file

@ -2,6 +2,7 @@ package techreborn.client.hud;
import org.lwjgl.opengl.GL11;
import techreborn.config.ConfigTechReborn;
import ic2.api.item.ElectricItem;
import ic2.api.item.IElectricItem;
import ic2.api.item.IElectricItemManager;
@ -41,7 +42,7 @@ public class ChargeHud
ItemStack stack = player.getCurrentArmor(2);;
if(stack != null)
{
if((stack.getItem() instanceof IElectricItem))
if((stack.getItem() instanceof IElectricItem) && ConfigTechReborn.ShowChargeHud)
{
double MaxCharge = ((IElectricItem) stack.getItem()).getMaxCharge(stack);
double CurrentCharge = ElectricItem.manager.getCharge(stack);