Added config for ChargeHud
This commit is contained in:
parent
afdbe69d18
commit
0ac115b0e1
2 changed files with 14 additions and 1 deletions
src/main/java/techreborn/client/hud
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue