Fixes tooltips for ME Slots (#3205)

No longer strips colors from names, lore, etc.
Now uses the translation again for "Items Stored:" instead of a hardcoded string.
Removed obsolete methods.
This commit is contained in:
yueh
2017-11-12 12:35:05 +01:00
committed by GitHub
parent a126112a2d
commit f5dd2c8b0a
2 changed files with 31 additions and 72 deletions
@@ -237,10 +237,11 @@ public class GuiNetworkStatus extends AEBaseGui implements ISortSource
this.getScrollBar().setRange( 0, ( size + 4 ) / 5 - this.rows, 1 );
}
// Vanilla version...
protected void drawItemStackTooltip( final ItemStack stack, final int x, final int y )
@Override
protected void renderToolTip( final ItemStack stack, final int x, final int y )
{
final Slot s = this.getSlot( x, y );
if( s instanceof SlotME && stack != null )
{
IAEItemStack myStack = null;
@@ -270,7 +271,8 @@ public class GuiNetworkStatus extends AEBaseGui implements ISortSource
this.drawTooltip( x, y, currentToolTip );
}
}
// super.drawItemStackTooltip( stack, x, y );
super.renderToolTip( stack, x, y );
}
@Override