Cleanup
This commit is contained in:
parent
ba71f26a75
commit
ec1c02d2e5
1 changed files with 7 additions and 6 deletions
|
@ -26,7 +26,6 @@ import buildcraft.api.power.PowerHandler;
|
||||||
import buildcraft.api.power.PowerHandler.PowerReceiver;
|
import buildcraft.api.power.PowerHandler.PowerReceiver;
|
||||||
import codechicken.lib.vec.Vector3;
|
import codechicken.lib.vec.Vector3;
|
||||||
import cofh.api.energy.IEnergyHandler;
|
import cofh.api.energy.IEnergyHandler;
|
||||||
|
|
||||||
import cpw.mods.fml.common.Optional.Interface;
|
import cpw.mods.fml.common.Optional.Interface;
|
||||||
import cpw.mods.fml.common.Optional.InterfaceList;
|
import cpw.mods.fml.common.Optional.InterfaceList;
|
||||||
import cpw.mods.fml.common.Optional.Method;
|
import cpw.mods.fml.common.Optional.Method;
|
||||||
|
@ -93,6 +92,7 @@ public class PartUniversalCable extends PartTransmitter<EnergyNetwork> implement
|
||||||
if(MekanismUtils.useIC2())
|
if(MekanismUtils.useIC2())
|
||||||
{
|
{
|
||||||
List<ForgeDirection> sides = getConnections(ConnectionType.PULL);
|
List<ForgeDirection> sides = getConnections(ConnectionType.PULL);
|
||||||
|
|
||||||
if(!sides.isEmpty())
|
if(!sides.isEmpty())
|
||||||
{
|
{
|
||||||
TileEntity[] connectedOutputters = CableUtils.getConnectedOutputters(tile());
|
TileEntity[] connectedOutputters = CableUtils.getConnectedOutputters(tile());
|
||||||
|
@ -112,6 +112,7 @@ public class PartUniversalCable extends PartTransmitter<EnergyNetwork> implement
|
||||||
{
|
{
|
||||||
toDraw -= getTransmitterNetwork().emit(received);
|
toDraw -= getTransmitterNetwork().emit(received);
|
||||||
}
|
}
|
||||||
|
|
||||||
((IEnergySource)acceptor).drawEnergy(toDraw*general.TO_IC2);
|
((IEnergySource)acceptor).drawEnergy(toDraw*general.TO_IC2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue