Several Tesla fixes

This commit is contained in:
aidancbrady committed 2017-03-08 19:01:43 -05:00
1 parent db2751c84d
commit ab5b5deb23
2 files changed
+2 -2

No files matched your search

@@ -258,7 +258,7 @@ public abstract class EnergyAcceptorWrapper implements IStrictEnergyAcceptor
@Override
public boolean needsEnergy(EnumFacing side)
{
return false;
return canReceiveEnergy(side);
}
public long toTesla(double joules)
@@ -255,7 +255,7 @@ public final class CableUtils
else if(CapabilityUtils.hasCapability(tileEntity, Capabilities.TESLA_CONSUMER_CAPABILITY, side.getOpposite()))
{
ITeslaConsumer consumer = CapabilityUtils.getCapability(tileEntity, Capabilities.TESLA_CONSUMER_CAPABILITY, side.getOpposite());
sent += consumer.givePower((long)Math.round(currentSending*general.TO_TESLA), false);
sent += consumer.givePower((long)Math.round(currentSending*general.TO_TESLA), false)*general.FROM_TESLA;
}
else if(MekanismUtils.useRF() && tileEntity instanceof IEnergyReceiver)
{