diff --git a/src/main/kotlin/net/shadowfacts/phycon/block/miner/MinerBlockEntity.kt b/src/main/kotlin/net/shadowfacts/phycon/block/miner/MinerBlockEntity.kt index bea7eef..7679b89 100644 --- a/src/main/kotlin/net/shadowfacts/phycon/block/miner/MinerBlockEntity.kt +++ b/src/main/kotlin/net/shadowfacts/phycon/block/miner/MinerBlockEntity.kt @@ -17,10 +17,7 @@ import net.shadowfacts.phycon.api.packet.Packet import net.shadowfacts.phycon.init.PhyBlockEntities import net.shadowfacts.phycon.block.DeviceBlockEntity import net.shadowfacts.phycon.block.terminal.TerminalBlockEntity -import net.shadowfacts.phycon.component.ActivationController -import net.shadowfacts.phycon.component.NetworkStackDispatcher -import net.shadowfacts.phycon.component.NetworkStackProvider -import net.shadowfacts.phycon.component.handleItemStack +import net.shadowfacts.phycon.component.* import net.shadowfacts.phycon.packet.* import net.shadowfacts.phycon.util.ActivationMode import net.shadowfacts.phycon.util.ClientConfigurableDevice @@ -55,6 +52,7 @@ class MinerBlockEntity: DeviceBlockEntity(PhyBlockEntities.MINER), is ExtractStackPacket -> handleExtractStack(packet) is CapacityPacket -> handleCapacity(packet) is ItemStackPacket -> handleItemStack(packet) + is RemoteActivationPacket -> controller.handleRemoteActivation(packet) } } @@ -122,9 +120,11 @@ class MinerBlockEntity: DeviceBlockEntity(PhyBlockEntities.MINER), override fun tick() { super.tick() - if (!world!!.isClient && minerMode == MinerMode.AUTOMATIC) { - - controller.tick() + if (!world!!.isClient) { + if (minerMode == MinerMode.AUTOMATIC) { + controller.tick() + } + finishTimedOutPendingInsertions() } }