Merge pull request #199 from thatsIch/displaydamage
Replace getDisplayDamage with getDurabilityForDisplay
This commit is contained in:
commit
d8da97d2af
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue