Testing to see if tooltips are the cause of the EE3 + NEI "lag"

This commit is contained in:
pahimar 2013-12-30 22:33:15 -05:00
parent 3039c2d71d
commit 927bce7c28

View file

@ -34,18 +34,15 @@ public class ItemTooltipEventHandler
EmcValue emcValue = EmcRegistry.getInstance().getEmcValue(stack);
event.toolTip.add("");
if (emcValue != null)
if (emcValue != null && debug)
{
event.toolTip.add("EMC: " + String.format("%s", emcDecimalFormat.format(stack.getStackSize() * emcValue.getValue())));
if (debug)
for (EmcType emcType : EmcType.TYPES)
{
for (EmcType emcType : EmcType.TYPES)
if (emcValue.components[emcType.ordinal()] > 0)
{
if (emcValue.components[emcType.ordinal()] > 0)
{
event.toolTip.add(" * " + emcType + ": " + String.format("%s", emcDecimalFormat.format(stack.getStackSize() * emcValue.components[emcType.ordinal()])));
}
event.toolTip.add(" * " + emcType + ": " + String.format("%s", emcDecimalFormat.format(stack.getStackSize() * emcValue.components[emcType.ordinal()])));
}
}
}