Fixed #209 - Inverted damage bar
This commit is contained in:
parent
e1627734b1
commit
ea33c116ab
1 changed files with 3 additions and 2 deletions
|
@ -160,9 +160,10 @@ public class AERootPoweredItem extends AEBaseItem implements IAEItemPowerStorage
|
||||||
return AccessRestriction.WRITE;
|
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
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue