Make energy upgrades affect fuel usage

This commit is contained in:
Ben Spiers 2014-09-12 02:06:40 +01:00
parent c512d72b06
commit 372705a448

View file

@ -632,7 +632,7 @@ public final class MekanismUtils
*/ */
public static int getSecondaryEnergyPerTick(IUpgradeManagement mgmt, int def) public static int getSecondaryEnergyPerTick(IUpgradeManagement mgmt, int def)
{ {
return (int)(def * Math.pow(Mekanism.maxUpgradeMultiplier, mgmt.getSpeedMultiplier()/8.0)); return (int)(def * Math.pow(Mekanism.maxUpgradeMultiplier, (mgmt.getSpeedMultiplier()-mgmt.getEnergyMultiplier())/8.0));
} }
/** /**