diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/storage/VirtualComponent.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/storage/VirtualComponent.kt index 89e2559c1..652d4a26b 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/storage/VirtualComponent.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/storage/VirtualComponent.kt @@ -263,7 +263,7 @@ open class PoweredComponent(open val parent: IStorageComponen } if (!simulate) { - val requiredNew = storageType.energyPerOperation * stack.count - leftover.count + val requiredNew = storageType.energyPerOperation * (stack.count - leftover.count) energy.extractEnergyInner(requiredNew, false) }