Fixed electrical furnace not using the correct amount of power when overclocked

This commit is contained in:
modmuss50 2018-04-07 20:31:05 +01:00
parent d50b3daf6e
commit 7deb407d0a
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82

View file

@ -149,8 +149,8 @@ public class TileElectricFurnace extends TilePowerAcceptor
boolean updateInventory = false;
if (this.isBurning() && this.canSmelt()) {
this.updateState();
if (canUseEnergy(this.cost)) {
this.useEnergy(this.cost);
if (canUseEnergy(getEuPerTick(this.cost))) {
this.useEnergy(getEuPerTick(this.cost));
this.progress++;
if (this.progress >= Math.max((int) (fuelScale * (1.0 - getSpeedMultiplier())), 2)) {
this.progress = 0;