From 12d3d4e54802fda2428ad2aed9af1b8b5779e4bd Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Sun, 16 Feb 2014 01:33:49 -0600 Subject: [PATCH] Hide "Passive Drain" for items with no idle drain. --- client/gui/implementations/GuiNetworkStatus.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/gui/implementations/GuiNetworkStatus.java b/client/gui/implementations/GuiNetworkStatus.java index 054c4ed12..3c23dc7f9 100644 --- a/client/gui/implementations/GuiNetworkStatus.java +++ b/client/gui/implementations/GuiNetworkStatus.java @@ -151,7 +151,8 @@ public class GuiNetworkStatus extends AEBaseGui implements ISortSource ToolTip = Platform.getItemDisplayName( repo.getItem( z ) ); ToolTip = ToolTip + ("\n" + GuiText.Installed.getLocal() + ": " + (refStack.getStackSize())); - ToolTip = ToolTip + ("\n" + GuiText.EnergyDrain.getLocal() + ": " + formatPowerLong( refStack.getCountRequestable() )); + if ( refStack.getCountRequestable() > 0 ) + ToolTip = ToolTip + ("\n" + GuiText.EnergyDrain.getLocal() + ": " + formatPowerLong( refStack.getCountRequestable() )); toolPosX = x * sectionLength + xo + sectionLength - 8; toolPosY = y * 18 + yo;