From 66a09ecbca1d7e2bc5dcf73340ed0e0ce11bd661 Mon Sep 17 00:00:00 2001 From: thatsIch Date: Tue, 30 Sep 2014 15:33:07 +0200 Subject: [PATCH] Replace getDisplayDamage with getDurabilityForDisplay --- .../items/tools/powered/powersink/AERootPoweredItem.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/appeng/items/tools/powered/powersink/AERootPoweredItem.java b/src/main/java/appeng/items/tools/powered/powersink/AERootPoweredItem.java index 6b9c85a1..72e9e139 100644 --- a/src/main/java/appeng/items/tools/powered/powersink/AERootPoweredItem.java +++ b/src/main/java/appeng/items/tools/powered/powersink/AERootPoweredItem.java @@ -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