From 18e7d9bbb3bad45e3bc482c6f53a10b1c34a8b44 Mon Sep 17 00:00:00 2001 From: YuRaNnNzZZ Date: Sun, 16 Feb 2025 00:46:34 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BD=D1=83=20=D0=B0=20=D1=82=D0=B0=D0=BA=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mc/otm/block/entity/matter/MatterReconstructorBlockEntity.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/matter/MatterReconstructorBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/matter/MatterReconstructorBlockEntity.kt index a949198a2..7e48c0a1c 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/matter/MatterReconstructorBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/matter/MatterReconstructorBlockEntity.kt @@ -230,6 +230,7 @@ class MatterReconstructorBlockEntity(blockPos: BlockPos, blockState: BlockState) if (energyConsumption.isPositive) { if (!energy.batteryLevel.isPositive) return val multEnergy = energyConsumption * (progressPerTick / thisProgressPerTick) + if (!multEnergy.isPositive) return progressPerTick *= (energy.extractEnergy(multEnergy, true) / multEnergy).toDouble() if (progressPerTick <= 0.0) {