Replace getDisplayDamage with getDurabilityForDisplay

This commit is contained in:
thatsIch 2014-09-30 15:33:07 +02:00
parent 6a8effe2b0
commit 66a09ecbca

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