From e8d7f0225c7ba4c4d8dc0d6e625d97e457fc17cc Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sat, 22 Jul 2023 11:47:41 +0700 Subject: [PATCH] Don't check for energy flow when working with mekanism energy --- .../kotlin/ru/dbotthepony/mc/otm/compat/mekanism/Power.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/compat/mekanism/Power.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/compat/mekanism/Power.kt index 0f2d21f9d..451a4070b 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/compat/mekanism/Power.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/compat/mekanism/Power.kt @@ -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