fix logic on RF adapter to properly drain energy
This commit is contained in:
parent
25da201481
commit
b3c58b2a3a
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue