Fix issues where the incorrect amount of power was being transfered.

This commit is contained in:
modmuss50 2017-05-18 19:17:28 +01:00
parent 8966538f1b
commit 98a3377c0c
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA

View file

@ -290,7 +290,7 @@ public abstract class CableMultipart extends Multipart
if (tile.hasCapability(CapabilityEnergy.ENERGY, face.getOpposite())) {
IEnergyStorage energy = tile.getCapability(CapabilityEnergy.ENERGY, face.getOpposite());
if (energy.canReceive()) {
int move = energy.receiveEnergy(Math.min(getCableType().transferRate * RebornCoreConfig.euPerFU, power), false);
int move = energy.receiveEnergy(Math.min(getCableType().transferRate, power), false);
if (move != 0) {
power -= move;
}
@ -410,7 +410,7 @@ public abstract class CableMultipart extends Multipart
@Override
public boolean canExtract() {
return false;
return true;
}
@Override