From 83ba7e0bb0cf4783a288892443f212ea77a59765 Mon Sep 17 00:00:00 2001 From: MachineMuse Date: Sun, 15 Dec 2013 18:42:33 -0700 Subject: [PATCH] changed integer calculations for kinglemming --- .../net/machinemuse/api/electricity/ElectricConversions.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/minecraft/net/machinemuse/api/electricity/ElectricConversions.scala b/src/minecraft/net/machinemuse/api/electricity/ElectricConversions.scala index 329de58..1a823ba 100644 --- a/src/minecraft/net/machinemuse/api/electricity/ElectricConversions.scala +++ b/src/minecraft/net/machinemuse/api/electricity/ElectricConversions.scala @@ -20,7 +20,7 @@ object ElectricConversions { def museEnergyFromEU(eu: Double): Double = eu * ModCompatability.getIC2Ratio // 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