Fix issues where the incorrect amount of power was being transfered.
This commit is contained in:
parent
8966538f1b
commit
98a3377c0c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue