Fix integer conversion

This commit is contained in:
Ben Spiers 2014-08-29 03:14:00 +01:00
parent 9294719ab2
commit c71c5d9fe7

View file

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