ну а так?

This commit is contained in:
YuRaNnNzZZ 2025-02-16 00:46:34 +03:00
parent b1915248a9
commit 18e7d9bbb3
Signed by: YuRaNnNzZZ
GPG Key ID: 5F71738C85A6006D

View File

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