This commit is contained in:
modmuss50 2015-06-14 15:59:03 +01:00
commit 783765676b
2 changed files with 14 additions and 1 deletions

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);

View file

@ -136,6 +136,9 @@ public class ConfigTechReborn {
public static boolean UUrecipesTungstenDust;
public static boolean UUrecipesTitaniumDust;
public static boolean UUrecipesAluminumDust;
// Client
public static boolean ShowChargeHud;
public static Configuration config;
@ -1035,6 +1038,15 @@ public class ConfigTechReborn {
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesAluminumDust.tooltip"))
.getBoolean(true);
ShowChargeHud = config
.get(CATEGORY_POWER,
StatCollector
.translateToLocal("config.techreborn.showChargehud"),
true,
StatCollector
.translateToLocal("config.techreborn.showChargehud.tooltip"))
.getBoolean(true);
if (config.hasChanged())