ну а так?
This commit is contained in:
parent
b1915248a9
commit
18e7d9bbb3
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user