From 8d222125b5145222ae88ca47b34d2e0652d8eafd Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 31 Dec 2023 09:41:03 +0700 Subject: [PATCH] Specify max battery of cables as positive infinity --- .../mc/otm/block/entity/cable/EnergyCableBlockEntity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 23b852c37..e9ce7b301 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 @@ -77,8 +77,8 @@ abstract class EnergyCableBlockEntity(type: BlockEntityType<*>, blockPos: BlockP get() = Decimal.ZERO set(value) {} - override val maxBatteryLevel: Decimal get() = Decimal.ZERO - override var energyFlow: FlowDirection = FlowDirection.BI_DIRECTIONAL + override val maxBatteryLevel: Decimal get() = Decimal.POSITIVE_INFINITY + override var energyFlow: FlowDirection = FlowDirection.INPUT private set override val canSetBatteryLevel: Boolean