Merge pull request #199 from thatsIch/displaydamage

Replace getDisplayDamage with getDurabilityForDisplay
This commit is contained in:
Chris 2014-09-30 13:48:12 -07:00
commit d8da97d2af

View file

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