Fixed #209 - Inverted damage bar

This commit is contained in:
thatsIch 2014-10-01 10:03:52 +02:00
parent e1627734b1
commit ea33c116ab

View file

@ -160,9 +160,10 @@ public class AERootPoweredItem extends AEBaseItem implements IAEItemPowerStorage
return AccessRestriction.WRITE;
}
@Override public double getDurabilityForDisplay(ItemStack is)
@Override
public double getDurabilityForDisplay(ItemStack is)
{
return getAECurrentPower( is ) / getAEMaxPower( is );
return 1 - getAECurrentPower( is ) / getAEMaxPower( is );
}
@Override