diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/tech/FlywheelBatteryBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/tech/FlywheelBatteryBlockEntity.kt index 1ec935423..13fee1bae 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/tech/FlywheelBatteryBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/tech/FlywheelBatteryBlockEntity.kt @@ -37,6 +37,13 @@ class FlywheelBatteryBlockEntity(blockPos: BlockPos, blockState: BlockState) : M private var multiblock: ShapedMultiblock? = null private var lastHeight = -1 var batteryLevel = Decimal.ZERO + set(value) { + if (field != value) { + field = value + markDirtyFast() + } + } + private var cachedChargeEfficiency = Decimal.ONE val formed: Boolean