Don't check for energy flow when working with mekanism energy

This commit is contained in:
DBotThePony 2023-07-22 11:47:41 +07:00
parent 1ff20b090f
commit e8d7f0225c
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -63,6 +63,14 @@ class Mekanism2MatteryEnergyWrapper(private val power: IStrictEnergyHandler, pri
}
}
override fun extractEnergyChecked(howMuch: Decimal, simulate: Boolean): Decimal {
return extractEnergy(howMuch, simulate)
}
override fun receiveEnergyChecked(howMuch: Decimal, simulate: Boolean): Decimal {
return receiveEnergy(howMuch, simulate)
}
override fun extractEnergy(howMuch: Decimal, simulate: Boolean): Decimal {
val action = when (simulate) {
true -> Action.SIMULATE