From 0342e2bfa4a68f13e0131788c905669fddfd723e Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Fri, 14 Oct 2022 12:46:13 +0700 Subject: [PATCH] how --- .../mc/otm/block/entity/EnergyCounterBlockEntity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/EnergyCounterBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/EnergyCounterBlockEntity.kt index 428219a52..d7beedd1a 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/EnergyCounterBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/EnergyCounterBlockEntity.kt @@ -305,7 +305,7 @@ class EnergyCounterBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) : Mat } } - @Suppress("deprecation") + @Suppress("deprecation", "OVERRIDE_DEPRECATION") override fun setBlockState(new: BlockState) { val old = blockState super.setBlockState(new) @@ -321,7 +321,7 @@ class EnergyCounterBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) : Mat if (isMekanismLoaded) { resolverInputMekanism = LazyOptional.of { Mattery2MekanismEnergyWrapper(energyInput) } - resolverOutputMekanism = LazyOptional.of { Mattery2MekanismEnergyWrapper(energyInput) } + resolverOutputMekanism = LazyOptional.of { Mattery2MekanismEnergyWrapper(energyOutput) } } checkSurroundings()