Fix cable tooltip

This commit is contained in:
Aidan Brady 2014-01-15 18:02:19 -05:00
parent 40663d6a6a
commit e83455ad2b

View file

@ -10,7 +10,7 @@ import mekanism.api.transmitters.ITransmitterNetwork;
import mekanism.api.transmitters.TransmissionType;
import mekanism.common.Mekanism;
import mekanism.common.Tier;
import mekanism.common.Tier.CableTier;
import mekanism.common.util.MekanismUtils;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
@ -88,7 +88,7 @@ public class ItemPartTransmitter extends JItemMultiPart
{
if(itemstack.getItemDamage() < Tier.CableTier.values().length)
{
list.add(EnumColor.INDIGO + "Capacity: " + EnumColor.GREY + Tier.CableTier.values()[itemstack.getItemDamage()].cableCapacity + "J/t");
list.add(EnumColor.INDIGO + "Capacity: " + EnumColor.GREY + MekanismUtils.getEnergyDisplay(Tier.CableTier.values()[itemstack.getItemDamage()].cableCapacity) + "J/t");
}
list.add("Hold " + EnumColor.AQUA + "shift" + EnumColor.GREY + " for details.");