Fix push/pull of energy working while disabled by redstone

This commit is contained in:
DBotThePony 2023-02-21 16:13:34 +07:00
parent 504033b65e
commit 259d944d0d
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -154,7 +154,7 @@ abstract class MatteryDeviceBlockEntity(blockEntityType: BlockEntityType<*>, blo
} }
override fun tick() { override fun tick() {
if (energyFlow == FlowDirection.NONE || !automatePull && !automatePush) if (energyFlow == FlowDirection.NONE || !automatePull && !automatePush || redstoneControl.isBlockedByRedstone)
return return
neighbour.ifPresentK { neighbour.ifPresentK {