oops
This commit is contained in:
parent
1365ac445a
commit
87276e22ed
@ -88,10 +88,10 @@ interface IMatteryEnergyStorage : IEnergyStorage {
|
|||||||
fun receiveEnergyChecked(howMuch: Decimal, simulate: Boolean): Decimal {
|
fun receiveEnergyChecked(howMuch: Decimal, simulate: Boolean): Decimal {
|
||||||
require(!howMuch.isNegative) { "Negative amount of energy: $howMuch" }
|
require(!howMuch.isNegative) { "Negative amount of energy: $howMuch" }
|
||||||
|
|
||||||
if (!energyFlow.output)
|
if (!energyFlow.input)
|
||||||
return Decimal.ZERO
|
return Decimal.ZERO
|
||||||
|
|
||||||
return extractEnergy(howMuch, simulate)
|
return receiveEnergy(howMuch, simulate)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user