Fix ChargeHud

This commit is contained in:
modmuss50 2016-06-06 20:22:56 +01:00
parent 2c6cc4b298
commit be336ec249

View file

@ -91,6 +91,7 @@ public class ChargeHud
{
double MaxCharge = ((IEnergyInterfaceItem) offHandstack.getItem()).getMaxPower(offHandstack);
double CurrentCharge = ((IEnergyInterfaceItem) offHandstack.getItem()).getEnergy(offHandstack);
if(MaxCharge != 0){
Color color = Color.GREEN;
double quarter = MaxCharge / 4;
double half = MaxCharge / 2;
@ -111,6 +112,7 @@ public class ChargeHud
+ PowerSystem.getLocaliszedPower(MaxCharge), 20, y, 0);
y += 20;
}
}
if (stack != null && stack.getItem() instanceof IEnergyInterfaceItem)
{
double MaxCharge = ((IEnergyInterfaceItem) stack.getItem()).getMaxPower(stack);