changed integer calculations for kinglemming
This commit is contained in:
parent
9bf723a01c
commit
83ba7e0bb0
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ object ElectricConversions {
|
||||||
def museEnergyFromEU(eu: Double): Double = eu * ModCompatability.getIC2Ratio
|
def museEnergyFromEU(eu: Double): Double = eu * ModCompatability.getIC2Ratio
|
||||||
|
|
||||||
// TE
|
// TE
|
||||||
def museEnergyToRF(museEnergy: Double): Int = (museEnergy / ModCompatability.getRFRatio).toInt
|
def museEnergyToRF(museEnergy: Double): Int = Math.ceil(museEnergy / ModCompatability.getRFRatio).toInt
|
||||||
|
|
||||||
def museEnergyFromRF(rf: Int): Double = rf * ModCompatability.getRFRatio
|
def museEnergyFromRF(rf: Int): Double = rf * ModCompatability.getRFRatio
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue