Fix invalid condition in imatteryenergystorage extractenergy
This commit is contained in:
parent
435c939f28
commit
9959f72db3
@ -173,7 +173,7 @@ interface IMatteryEnergyStorage : IEnergyStorage {
|
||||
|
||||
override fun extractEnergy(maxReceive: Int, simulate: Boolean): Int {
|
||||
// follow contract of IEnergyStorage
|
||||
if (energyFlow.output)
|
||||
if (!energyFlow.output)
|
||||
return 0
|
||||
|
||||
val extracted = extractEnergyChecked(Decimal(maxReceive), true).toInt()
|
||||
|
Loading…
Reference in New Issue
Block a user