This commit is contained in:
Aidan Brady 2013-11-22 23:36:18 -05:00
parent a9fde31c97
commit 10da5406de
2 changed files with 7 additions and 1 deletions

View file

@ -52,9 +52,10 @@ public class ItemBlockTransmitter extends ItemBlock
else if(itemstack.getItemDamage() == 1)
{
list.add(EnumColor.DARK_GREY + "Capable of transferring:");
list.add("- " + EnumColor.PURPLE + "RF " + EnumColor.GREY + "(ThermalExpansion)");
list.add("- " + EnumColor.PURPLE + "EU " + EnumColor.GREY + "(IndustrialCraft)");
list.add("- " + EnumColor.PURPLE + "MJ " + EnumColor.GREY + "(BuildCraft)");
list.add("- " + EnumColor.PURPLE + "Joules " + EnumColor.GREY + "(Mekanism)");
list.add("- " + EnumColor.PURPLE + "Joules " + EnumColor.GREY + "(Mekanism, UE)");
}
else if(itemstack.getItemDamage() == 2)
{

View file

@ -169,6 +169,11 @@ public class TileEntityUniversalCable extends TileEntityTransmitter<EnergyNetwor
@Override
public PowerReceiver getPowerReceiver(ForgeDirection side)
{
if(getTransmitterNetwork().getEnergyNeeded(new ArrayList()) == 0)
{
return null;
}
return powerHandler.getPowerReceiver();
}