Charge bench now supports higher teir items.
This commit is contained in:
parent
c4b50b5c79
commit
61a600713a
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ public class TileChargeBench extends TilePowerAcceptor implements IWrenchable, I
|
||||||
double amount = ((IElectricItem) stack.getItem()).getTransferLimit(stack);
|
double amount = ((IElectricItem) stack.getItem()).getTransferLimit(stack);
|
||||||
double CurrentCharge = ElectricItem.manager.getCharge(stack);
|
double CurrentCharge = ElectricItem.manager.getCharge(stack);
|
||||||
if (CurrentCharge != MaxCharge && getEnergy() >= 0) {
|
if (CurrentCharge != MaxCharge && getEnergy() >= 0) {
|
||||||
ElectricItem.manager.charge(stack, MaxCharge - CurrentCharge, 3, false, false);
|
ElectricItem.manager.charge(stack, MaxCharge - CurrentCharge, 4, false, false);
|
||||||
useEnergy(amount);
|
useEnergy(amount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue