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) {