From 35e0bc65da3f5e64c4db47a68c3fcb68dec24f13 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Fri, 29 Dec 2023 16:39:19 +0700 Subject: [PATCH] Add more specifics to cable energy cap --- .../mc/otm/block/entity/cable/EnergyCableBlockEntity.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/cable/EnergyCableBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/cable/EnergyCableBlockEntity.kt index 20772b3cf..32e30d3ef 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/cable/EnergyCableBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/cable/EnergyCableBlockEntity.kt @@ -85,6 +85,12 @@ class EnergyCableBlockEntity(blockPos: BlockPos, blockState: BlockState) : Matte override val maxBatteryLevel: Decimal get() = Decimal.ZERO override var energyFlow: FlowDirection = FlowDirection.BI_DIRECTIONAL private set + + override val canSetBatteryLevel: Boolean + get() = false + + override val missingPower: Decimal + get() = Decimal.POSITIVE_INFINITY } inner class Node : GraphNode(::EnergyCableGraph) {