Fix integer conversion
This commit is contained in:
parent
9294719ab2
commit
c71c5d9fe7
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue