Specify max battery of cables as positive infinity

This commit is contained in:
DBotThePony 2023-12-31 09:41:03 +07:00
parent 1c0cdb8b5b
commit 8d222125b5
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -77,8 +77,8 @@ abstract class EnergyCableBlockEntity(type: BlockEntityType<*>, blockPos: BlockP
get() = Decimal.ZERO get() = Decimal.ZERO
set(value) {} set(value) {}
override val maxBatteryLevel: Decimal get() = Decimal.ZERO override val maxBatteryLevel: Decimal get() = Decimal.POSITIVE_INFINITY
override var energyFlow: FlowDirection = FlowDirection.BI_DIRECTIONAL override var energyFlow: FlowDirection = FlowDirection.INPUT
private set private set
override val canSetBatteryLevel: Boolean override val canSetBatteryLevel: Boolean