fix logic on RF adapter to properly drain energy

This commit is contained in:
MachineMuse 2013-11-28 02:19:43 -07:00
parent 25da201481
commit b3c58b2a3a

View file

@ -51,9 +51,9 @@ class TEElectricAdapter(val stack: ItemStack) extends ElectricAdapter {
def getMaxEnergy: Double = museEnergyFromRF(item.getMaxEnergyStored(stack))
def drainEnergy(requested: Double): Double = museEnergyFromRF(item.extractEnergy(stack, museEnergyToRF(requested), true))
def drainEnergy(requested: Double): Double = museEnergyFromRF(item.extractEnergy(stack, museEnergyToRF(requested), false))
def giveEnergy(provided: Double): Double = museEnergyFromRF(item.receiveEnergy(stack, museEnergyToRF(provided), true))
def giveEnergy(provided: Double): Double = museEnergyFromRF(item.receiveEnergy(stack, museEnergyToRF(provided), false))
}