This commit is contained in:
DBotThePony 2023-01-31 00:21:57 +07:00
parent b8b83bde32
commit e35a3aaf80
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -289,11 +289,11 @@ class BatteryBankBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) : Matte
private val consumers = object : BESubscribeList<IEnergyStorage>(this@BatteryBankBlockEntity, ForgeCapabilities.ENERGY) { private val consumers = object : BESubscribeList<IEnergyStorage>(this@BatteryBankBlockEntity, ForgeCapabilities.ENERGY) {
override fun test(t: Direction): Boolean { override fun test(t: Direction): Boolean {
return -blockState.facingOne == t return blockState.facingOne == t
} }
} }
fun checkSurroundings() = consumers.update((-blockState.facingOne)::equals) fun checkSurroundings() = consumers.update(blockState.facingOne::equals)
fun tick() { fun tick() {
if (redstoneControl.isBlockedByRedstone) if (redstoneControl.isBlockedByRedstone)