From b78eb192deaa861c33368a19fb5ed913908dcaff Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 9 Mar 2021 18:25:59 -0500 Subject: [PATCH] Fix Miner not inserting things --- .../phycon/block/miner/MinerBlockEntity.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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() } }